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