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