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