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