Which is a compound sentence?

 - The engine in the car makes a strange noise.
 - Grandma shelled the peas, but she left the beans for me.
The first sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction but.
Grandma shelled the peas, but she left the beans for me.