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