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