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