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