A line with a slope of 7 passes through the points (5,–2) and (6,k). What is the value of k?

To find the value of k, we first need to calculate the slope of the line passing through the two given points.

The formula for calculating the slope given two points (x1, y1) and (x2, y2) is:

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

Substitute the values of the points into the formula:

Slope = (k - (-2)) / (6 - 5)
Slope = (k + 2) / 1
Slope = k + 2

Given that the slope of the line is 7, we have:

k + 2 = 7
k = 7 - 2
k = 5

Therefore, the value of k is 5.