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