An agreement between two parties which will give rise to rights and obligation is known…