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