First known equation is:
2L + 2W = 46
Second equation is:
L = W +7
Put the variable L of the second equation in the first equation.
2(W+7) + 2W = 46
2W +14 +2W = 46
4W = 32
W=8
Then resolve L using any of the above initial equations
L = 8 + 7 = 15
Verify: 2L +2W = 46
2(15) + 2(8) = 30 + 16 = 46 = perimeter