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