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