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