What is the result when correctly solving the formula for the variable w when the formula for the perimeter P of a rectangle is P=2l + 2w?

Is it w = (p-2l)/2

If not, please explain. Thanks

you are correct