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