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