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