The correct answer is Both wanted to stop the spread of communism.
When John F. Kennedy and Richard Nixon ran against each other for president in 1960, they were very different in terms of political views. However, one thing they did agree on was stopping the spread of communism on a global scale. This policy revolved around stopping the spread of communism was known as containment.
Containment shaped America's foreign policy for nearly 3 decades, as the US got involved in several overseas military conflicts to stop this system from spreading to other countries.