Law is a set of guidelines that dictates how people should behave in society. These rules are usually created by…