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