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