Final answer:
The equation of the line with a y-intercept of 2 and a slope of 3 is y = 3x + 2.
Step-by-step explanation:
The equation of a line in slope-intercept form is given by y = mx + b, where m is the slope and b is the y-intercept.
In this case, the y-intercept is 2 and the slope is 3.
Therefore, the equation of the line would be y = 3x + 2.