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