The quadratic, of course, has two roots. One of these roots will be negative which is an absurd result when calculating the length of something. This is an extraneous root introduced when the variable was squared in the process of solving the problem -- exclude it. The positive root is the correct value for the length of the rectangle, and the width can be calculated directly from that value.