Same Area: Triangle & Square

Construct a triangle that always has the same area as a square.


Given a triangle, how do you construct a square with the same area using a dynamic geometry software?