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