#color(red)(x^3+125 = x^3+5^3 = (x+5)(x^2-5x+25))#
#color(blue)(15x^2+75x = (x+5)(15x))#
#color(red)(x^3) + color(blue)(15x^2)+color(blue)(75x)+color(red)(125)#
Therefore:
#=color(red)((x^3+125)) + color(blue)((15x^2+75))#
#= (x+5)color(red)((x^2-5x+25)) + (x+5)color(blue)((15x))#
#= (x+5)(color(red)(x^2-5x+25)+color(blue)(15x))#
#=(x+5)(x^2+10x+25)#
#=(x+5)^3#