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