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