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