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