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