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