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