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