For this problem we have these two equations given:


With L represent the length and W the width. We also know from the figure attached this condition:

Where D represent the length of the door. We can use this formula for the length:

And solving for D we got:
