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