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