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