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