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