If the dimensions of the house are represented by L, W and H (length, width and height), then W is the base length of the ends of the triangular prism forming the roof. If the triangle is isosceles (a right triangle because the apex is a right angle) and the length of the roof from the apex is x, then W=2x2. But the question doesn't make any statement about the triangles and the best we can do is to write W=a2+b2 where a and b are the lengths of the different roof sections measured from the apex. None of these measurements can be used to determine the height of the building, because H and L are independent of the triangular dimensions of the roof.