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