Final answer:
The value of q is -3.
Step-by-step explanation:
To find the value of q, we need to use the formula for slope:
m = (y2 - y1) / (x2 - x1)
where (x1, y1) and (x2, y2) are the coordinates of two points on the line. In this case, the points are (q,6) and (-3,-1). Since the slope is undefined, the denominator (x2 - x1) must be equal to zero:
-3 - q = 0
From this equation, we can solve for q by subtracting -3 from both sides:
q = -3.