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