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