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