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