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