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