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