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