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