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