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