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