The correct answer is:
B. In both wars, the United States tried to stop communism from spreading.
Both the Vietnam War and the Korean War were part of the larger context of the Cold War, where the United States aimed to contain the spread of communism, which was supported by the Soviet Union and China in these conflicts.