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