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