Start with a square that is inscribed in the given triangle that has one side on the base of the triangle andonevertex on one of the other sides of the triangle. Then use a dilation from one of the vertices of the triangle so that the fourth vertex of the square comes to lie on the third side of the triangle: this gives you the square that satisfiesallrequirements.