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