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