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