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