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