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