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