For this case what we should do is define the variables.
We have then:
AB: length of the rectangle
BC: rectangle width
d: diagonal of the rectangle
The diagonal of the rectangle is given by:

From here, we clear the value of AB:

Substituting values:

Answer:
the length of line segment AB is:
