I'm gonna do this step-by-step so you can understand what I'm doing.
First, add the like things (which are 10w and 6w, because they both are multiplied by w):
48=16w
Next, you need to get rid of the 16. To do so, simply divide everything on both sides by 16 so that you get w=3.
Hope this helps :-)