The figure on the left is an isosceles right triangle, and the figure on the right is a square of length 3. What is the value of b?
(1) b is the length of the diagonal of the square.
(2) the triangle and the square have the same area.