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