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