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