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