Suppose a person is arrested and determined not to pose a threat to society, and they are eligible for an…