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