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