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