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