Imgur: The most awesome images on the Internet(picture of problem)

A rectangle is inscribed in a semicircle and the radius is 1. The bas of the rectangle is x. Write an expression for the rectangle perimeter and determine the value of x that gives the highest possible perimeter. Also, what is the highest perimeter?

Well... I fooled around with the unit circle, but still no progress. I've found several instructions on how to find the area, but no luck with perimeter.

I'm actually desperate enough to actually pay for a solution, ben stuck on this problem for days now.

Could any kind soul help me out?