Which is a compound sentence?
A. The engine in the car makes a strange noise.
B. Grandma shelled the peas, but she left the beans for me.
Select the correct answer from the given choices and respond with the letter of the chosen option.

B