Hello,
We know that if we make the same operation on both sides, we don't affect the equation:
For example:

Do you see? we add 2 on both sides and we don't affect the equality
We can do the same with the multiplication, for example
4=4 (i'll multiply both sides by 1/2)

Now, we do exactly the same in your excercise:
![P=2(L+W) \,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,[multiply\,\,by\,\,1/2] \\ \\ P*\bold{ (1)/(2)}=2(L+W)*\bold{ (1)/(2)} \\ \\ (P)/(2)=L+W\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,[Subtract\,\,L]\\ \\ (P)/(2)-\bold{L}=L+W-\bold{L}\\ \\ (P)/(2)-\bold{L}=L-\bold{L}+W \\ \\ (P)/(2)-L=W\\ \\ \boxed{ W= (P)/(2)-L }](https://img.qammunity.org/2015/formulas/mathematics/high-school/bcbg4nanepo2t9o9oqttepa2kfhcxwbst9.png)