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