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