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