... To Follow ...
As the shape is declared to be a rectangle, then ...
Rearranging the second equation to the same structure as the first.
Subtracting the first equation from the second
Substituting this into the first equation
The perimeter of a rectangle is given by