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