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