Suppose we have a rectangle with area 50 and perimeter 30. Let's set up equations to find the side lengths.
ab = 50
2a + 2b = 30
Now we need to get one variable alone on one side.
a + b = 15
a = 15 - b
Use substitution and solve.

So we now know that the square has dimensions 5 and 10. Let's find the surface area.
