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