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