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