How scientists solved this dinosaur puzzle