While using the pattern used to square numbers with unit digit 5 for 125, we get: (
For a number with unit digit 5, i.e., a5
(a5)2=(10a+5)2
⇒10a(10a+5)+5(10a+5)
⇒100a2+50a+50a+25
⇒100a(a+1)+25
⇒a(a+1)hundred+25
According to the formula, here a=12.