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