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