A line that includes the points (5,q) and (2,–1) has a slope of –1/3. What is the value of q?

First, we determine the slope using the formula:

m = (y2 - y1) / (x2 - x1)

Given that the two points are (5,q) and (2,-1), we can plug in the values:

-1/3 = (q - (-1)) / (5 - 2)
-1/3 = (q + 1) / 3

Cross multiplying, we get:
-3 = q + 1
q = -4

Therefore, the value of q is -4.