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