If a line with x-intercept −5 and y-intercept 35 passes through point P=(5,a) , what is the value of a ?

clearly we have 7x+y=0

That help?