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