Change the subject of this equation to L
P=2(L+B)