You must do to the left hand side what you do to the right hand side.
We just want to get only A on the LHS and how much A is on the RHS.
A + 24 - 24 = -15 - 24 // we get rid of the +24 to only leave A and we do it on the other side because we always do that
A = -39