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