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