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