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