Final answer:
The equation of a line is defined by y = mx + b, where m represents the slope and b is the y-intercept. To write the equation, substitute the known slope and y-intercept into the formula, like y = 3x + 5 for a slope of 3 and y-intercept of 5.
Step-by-step explanation:
The equation of a line in the form y = mx + b is determined by its slope (m) and y-intercept (b). The y-intercept is the point where the line crosses the y-axis, and the slope is the ratio of the vertical change (rise) to the horizontal change (run) between any two points on the line. To write the equation of a line, you identify its slope and y-intercept and substitute these values into the general formula. For example, if the slope (m) is 3 and the y-intercept (b) is 5, the equation would be y = 3x + 5. Similarly, if the slope is -2 and the line passes through the point (0, 4), you would plug these values into the formula, resulting in the equation y = -2x + 4.