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