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