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