Which three of the following were motivating ideas for Latin American revolutionary leaders?

maintaining ties with Spain for economic progress
successful revolutions in other countries
the publication of The Social Contract by Jean Jacques Rousseau
the publication of Common Sense by John Locke
the concept of equality among men