I’m trying to do this equation but don’t know where the 2 came from when you square it. Can somebody explain where the 2x come from? The 2x on the right side

Im trying to do this equation but dont know where the 2 came from when you square it Can somebody explain where the 2x come from The 2x on the right side class=