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