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