A regulation racquetball court has a perimeter of 120ft, with a length that is twice the width. find the length and the width of such a court.

I know the answer is the length = 40 and the width = 20;

but I can't figure out the equation for it any help will be appreciated.