When studying for the GMAT, I encountered this problem

(Square root of 3+Square root of 3+Square root of 3)^2

As in raised to the second power.

I know the answer is 27. However, I was under the impression that squaring a square root would simply remove the square root symbol. Why wouldn't this answer be 3+3+3=9?