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