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