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