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