a square with sides equal to 6 has the same area as a triangle with a base of 9. What is the height of the triangle?