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