For this case we have the following diagonals.
Since it is a rectangle, then the length of the diagonals is the same.
We have then:
AC = BD
Substituting values we have:

Rewriting:

Clearing the value of a we have:

Substituted the value of a in any of the equations we have:

Answer:
The length of each diagonal is:
