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