The equation should go something like this:
the length (l) is 8 more than 3 times the width (w) and the length plus the width is equal to half the perimeter
so the means that L= 3W+8 and L+W= 32
so you can plug in L to get 3W+8+W=32
Finally it would be 4W+8=32