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