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