[This problem is worth 2 points.]
Given a square ABCD of side length 3, a scalene triangle is constructed with AC as one of the sides. If the area of the triangle is the same as the area of the square, what is the length of the altitude of the triangle to the base AC?