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