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