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