Which is a compound sentence?
A. Eli Whitney invented the cotton gin in 1793.
B. Long-distance runners need speed to win races, but they also need endurance.
Answer with the option's letter from the given choices directly.

B