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