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