Find the equation of a line which is form origin and passes through the point…