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