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