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