contestada

Which sentence is written correctly?

a
I am happy, because I won the race.
b
She wanted to sleep, but the thunderstorm was too loud.
c
If the dog would be quiet I could study.
d
Jane ran to the store and bought grapes.