The coordinates of point C are (0, 0), while the coordinates of point D are (7, 12).
Applying the formula for the slope, we get

The equation in the slope-intercept form is given by

The domain and range are, respectively, the portion of the x and y axes covered by the part of the graph you're interested in.
So, the x axis is spanned from 0 to 7 (which is the domain), and the y axis is spanned from 0 to 12 (which is the range)