A rectangular bird sanctuary is being created with one side along a straight riverbank. the remaining three sides are to be enclosed with a protective fence. if there are 24 km of fence available, find the dimension of the rectangle to maximize the area of the sanctuary.