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