Miles K. answered 03/29/21
Ace your next interview! Career prep with Management Consultant & MBA
Hi Maddy! This question leaves some room for you to be creative. We know that we want a line, so we think of the equation for a line: y = mx + b.
Here:
- y is the y coordinate, or the output of the function
- x is the x coordinate, or the input of the function
- m is the slope, or how 'steep' the line is
- and b is the Y-intercept (what is the value of y when x=0), or where does the line pass through the Y-axis.
To come up with an equation for a line, you need a point on the line and the slope.
We know the line must go through the point (2,5) and the slope is undefined. Slope is rise divided by run. When a slope is undefined, the denominator (or bottom) is zero. So, a vertical line has an undefined slope since the run is zero, thus we know this line is vertical. Therefore, regardless of the y-value, x is always 2 (based on the points we were given).
So the formula would be x=2.