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