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