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