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