For what value of a is there a right triangle with sides a+1, 6a, and 6a+1?"

The longest side is the hypotenuse, 6a+1

So use Pythagoras:
(a+1)^2+(6a)^2=(6a+1)^2
and solve for a, reject all values of a≤0.