Answer:
Fred got up, and while he was raking the leaves, he told George a funny story.
Explanation:
Compound-complex sentence is the one that consists of two independent (can function on its own) and at least one dependent (can not function on its own).
Whatever clause may be it must consist of a verb that functions as a predicate. So the easiest way to count the clauses is to count the predicates.
First sentence has only one predicate (busied); raking is a participle, thus can not be counted as a predicate.
Second sentence has only one predicate (busied); speaking is a participle.
Third has three predicates (got up, was raking, told). That means this sentence consists of three clauses.
Fred got up - independent
while he was raking the leaves - dependent
he told George a funny story - independent
Fourth sentence consists of two predicates (liked, raked); telling is a participle.
Only the third sentence meets condition for compound-complex sentence.