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