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