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