Format of your equation is: y = mx + c, where (x,y) is a point on the line, m is the slope of the line, and c is a constant.
We can start with this equation template and fill in what we know.
Point (5,0) is on the line.
The slope of the line is 1.
y = mx + c
0 = 1(5) + c
0 = 5 + c
Now solve for c by isolating the c on one side of the equal signs. To do this, subtract 5 from each side to get,
0 – 5 = 5 – 5 + c
–5 = c
Fill this value of c into your template with the generic x and y to get:
y = 1x – 5
or
y = x – 5 (typically, we leave off the coefficient when it is one: 1x = x)