Math Help - Warehouse Problem

1. Warehouse Problem

I am stuck on this question. i would really appreciate some help

A rectangular warehouse will have 5000 square feet of floor space and will be separated into two rectangular rooms by one interior wall. The cost of the exterior walls is $150 per liner foot, while the cost of the interior walls is$100 per linear foot. Find a formula that gives the construction cost as a function of the length of the building. Find the dimensions (rounded to the nearest hundredth) of the warehouse that minimize the construction cost.

2. Sorry, hope you can read my handwriting. This is so much faster than typing it out in LaTex.

Hope that make sense.

3. thank you so much!!!!!
you have good hand writing btw