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