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