To maintain order and justice, the legal system has procedures in place. There are two types of procedures, criminal and…