You are building a right-angled triangular flower garden along a stream as shown in the figure. The fencing of the left border costs $10 per foot, while the fencing of the lower border costs $2 per foot. (No fencing is required along the river.) You want to spend $400 and enclose as much area as possible. What are the dimensions of your garden, and what area does it enclose?