Letting g represent a line with an equation in slope-intercept form, g can be written as y = mx + b, where m is the slope and b is the y-intercept.
Given that the function has a slope of 3, the equation of the line is:
y = 3x + b
Therefore, the following could be the equation for g:
y = 3x + 1
y = 3x + 4
y = 3x - 2
y = 3x - 12