Inscribed Rectangle Optimization

Move the point A and determine where it should be placed to maximize the area of the rectangle.