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