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