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