Complex sentence: If the teams gave it to the wrong dancer, the dancer would take the photo and would have to get a new picture and try again.
Split into simpler sentences: If the teams gave it to the wrong dancer, the dancer would take the photo. If they were unsuccessful, they would have to get a new picture and try again.