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