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