Which is a compound sentence?
A. The tailor measures the length of the pant leg.
B. Desmond liked the sea otters, but the jellyfish were his favorite.
Pick the correct answer from the listed options and provide the letter of the selected option.

B