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