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