A farmer wants to fence a rectangular area of 338 square feet next to a river. Find the length and width of the rectangle which uses the least amount of fencing if no fencing is needed along the river. Assume the length of the fence runs parallel to the river.