I have a homework question which I don't know if my solution is correct

I need to arrange the below formula to make l the subject
M = w/2 (L - l^2)

MY SOLUTION
2M = w (L - l^2)
2M = Lw - wl^2
wl^2 = Lw - 2M
l^2 = (Lw - 2M) / w
l = sqrt of (Lw - 2M) / w

Thanks

2 answers

ok if you mean
M = [w/2] (L - l^2)
and not
M = w / [2 (L - l^2)]
careful with parentheses
thanks for your answer