If squared 61 is the longest side length in the triangle, find the value of x that makes the triangle above a right triangle. Write your answer in simplest radical form.