There are 7 baskets on the table. Each basket has 9, 12, 17, 11, 5, 7 and 3 apples. Matt chose second, Sean chose sixth, Olivia chose fifth, Emma chose third, Noah chose seventh, John chose first, and Liam chose fourth. How many apples did John and Matt choose in total?