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