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