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