A straight T passes through p(5,8) and Q(1,5) find the equation of straight line T

the slope is (5-8)/(1-5) = -3/4

So, you have a point (either of the two points given) and a slope.
Now use the point-slope form of the line to find the equation.