Draw a perpendicular RO from R to the hypotenuse PQ (such that O lies on PQ).Construction:

Area of the triangle PQR =

-----------------------------------------------------------------------------

In ,

By basic proportionality theorem,

So,

So the side of the square is .

------------------------------------------------------------------------------

In ,

By basic proportionality theorem,

-----------------------------------------------------------------------------

So, the side of the square is