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