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