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