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