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