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