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