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