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