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