Law is a system of rules and regulations created and enforced by social or governmental institutions to regulate behavior. It…