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