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