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