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