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