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