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