It is known that a square can be inscribed in a given right trapezoid so that each of its vertices lies on the corresponding side of the trapezoid (none of the vertices of the square coincides with the vertex of the trapezoid). Construct this inscribed square with a compass and a ruler. (Maria Rozhkova)