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