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