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