Side of square = x
Base of triangle = x
Height of triangle = \(\frac{3x}{4}\)
Area of triangle = \(\frac{3x^2}{8}\)
Area of square = \(x^2\)
Ratio - \(\frac{3x^2}{8x^2}=\frac{3}{8}\)
-------------------------------------------------
or you can just substitute integer numbers