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