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