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