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