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