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