A rectangular cow pasture is enclosed on three sides by a fence and the fourth side is part of the side of a barn that is 400 feet long. The fence costs $5 per foot, and $1200 altogether. To the nearest foot, find the length of the side parallel to the barn that will maximize the area of the pasture.