The Hubble constant is found from the slope of the line fit to the…