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