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