Here's why:
* Two independent clauses: The sentence contains two separate parts that could stand alone as complete sentences:
* "Ted cooked the dinner."
* "Janet ate it."
* Conjunction: The two clauses are joined by the conjunction "and", indicating that both actions happened.
A simple sentence has only one independent clause.