Hey, everyone!

I've been working on my homework and this one problem's got me confused. Can someone help me get started? (Sorry, I'm rather lousy at math.)

*A rectangle is bounded by the x-axis and the y-axis with a vertex on line ***p** as shown below. *a) Write a formula for the base of the rectangle in terms of x.* *b) Write a formula for the height of the rectangle in terms of x. *(Hint: find the equation of line

*p.*)

*c) Write a function for the area of the rectangle as a function of x.* *d) What bae and height should the rectangle have in order to produce the rectangle with the maximum area? Find its area.*
Really, I just need help setting up a and b. But any and all help is greatly appreciated!