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