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