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