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