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