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