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