what u do to one side u have to do to other, so to cancek out the -15 and get the w on its own you must add it to the other side so
-15+w=16 becomes
-15+w=16
+15. +15
this leaves u w the solution of w=31
if u plug it in -15 + 31 does indeed equals 16