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