Final answer:
The equation of the line is y = 2x + 3.
Step-by-step explanation:
To find the equation of a line in slope-intercept form, which is in the form y = mx + b, we can substitute the known values into the equation. In this case, the slope is 2, so we have y = 2x + b. To find the value of b, we can use the fact that the line passes through the point (0,3). By substituting x=0 and y=3 into the equation, we can solve for b. We get 3 = 2(0) + b, which simplifies to b = 3. Therefore, the equation of the line is y = 2x + 3.