the sum of the perimeter of a square of a rectangle is 1000m. Find the dimensions of the square and rectangle that will have a maximum area combined if the length of the rectangle is twice its width.