The correct option is
B dances, feed
The word, "when" means "at the same time" or "immediately after a specific point of time". As the two verbs, "dance" and "feed" are related by time, both the verbs need to have happened at the same time. Hence, both verbs should be in the same tense.
Option A: The verb, "dances" is in present tense and the verb, "fed" is in past tense. Hence, this option is incorrect.
Option B: The verb, "danced" is in past tense and the verb, "feed" is in present tense. Hence, this option is incorrect.
Options C & D: The verb, "dance" as well as "dances" are in present tense. The verb, "feed" is also in present tense. Hence, we have to choose the correct answer, which is either option C or D. The subject, "dolphin" is in third person singular noun form. It is followed by the verb+the letter "s". Hence, "dances" is the appropriate verb and "dance" is incorrect.
Hence, option C is incorrect and option D is correct.