Answer: Peggy loves broccoli, but she hates cabbage.
Explanation:
A compound sentence is made up of two independent clauses joined by a coordinating conjunction (for, and, nor, but, or, yet, or so) and a comma or by a semicolon alone.
Example: The pirate captain lost her treasure map, but she still found the buried treasure