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