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