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