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