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