Question 384308
We have

xy = 54, and

2(x + y) = 42 --> x + y = 21

This is a fairly easy case, as guess and check shows the dimensions to be 18 in. and 3 in. However if the values didn't reveal an obvious answer, you could solve it by defining a quadratic polynomial using Vieta's formulas (relating to the sum and product of roots).