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