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