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