The width of the rectangle in the picture is x. What is the height as a function of x? Try using similar triangles in order to figure this out.