Given the information, we have the following:
Therefore, we have the following relationship:
Now, solving for x we get the following values:
Since we cannot have a negative length, we take x=14, therefore:
Finally, the longer side of the room is 21 ft