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