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