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