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