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