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