how do you get 2*5+5squared root 5 to become 2+sqrt5 ?

2 * 5 + 5^2*(√5)

Online "^" indicates exponents and "√" indicates square root.

From the way you have indicated the problem, you don't. Are there any typos?

However, if you mean:

2 * 5 + 5√5 = 5(2 + √5)