Law consists of the sets of restrictions, policies, statutes and guidelines that people agree to…