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