The square of any number ending with 5 can be written as:
(a5)2 = [a × (a + 1) × 100] + 25
Here, a is the number excluding the units digit.
So, the square of 185 can be calculated as:
[18 × (18 + 1) × 100] + 25
= [18 × 19 × 100] + 25
= 34200 + 25
= 34225