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