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