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