Hobbes and Locke both had distinct views on the primary object of government, but they shared an overarching goal of ensuring peace and security for individuals.
Thomas Hobbes believed that the primary object of government was to provide security and prevent the chaos of a purely anarchic state of nature, which he described in his work "Leviathan." Hobbes argued that individuals needed to submit to a powerful sovereign authority to maintain order and protect themselves from violence and conflict.
John Locke, on the other hand, emphasized the protection of individual rights and the establishment of a government based on consent. In his work "Two Treatises of Government," Locke argued that the primary purpose of government is to protect the natural rights of individuals (life, liberty, and property) and to ensure justice.
Given this context, the most accurate answer to your question would be:
to allow people to live their lives in peace and security.
Both philosophers recognized the need for government as a means to create a stable environment for individuals to thrive. However, while Hobbes focused more on security through authority, Locke placed greater emphasis on individual rights and justice.