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