Use the slope formula for a straight line. Given any two points on the line, (x1,y1) and (x2,y2), the slope (m) is:
m = (y2-y1) / (x2-x1)
where:
m = slope = -8/5
(x1,y1) = (3,4)
(x2,y2) = (x,8)
Substituting in the values:
-8/5 = (8-4) / (x-3) = 4/(x-3)
x-3 = (4)(5) / (-8)
Can you finish solving for x?