The area of the triangle formed by the coordinate axes and a line is 6 square units, and the length of its hypotenuse is 5 units. Find the equation of the line.