SLOPE: A number used for describing the line steepness and line direction in mathematics is known as a slope. DENOTATION:…