5. Which is a compound sentence?

a) I like walking on the beach with my dog. b) I like walking but my dog likes running. c) When I travelled to Lagos, I bought a bicycle d) I went to Lagos.