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