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