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