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