There is a square field of side 500 m long each. It has a compound wall along its perimeter. At onec of its corners, a triangular area of the field is to be cordoned off by erecting a straight-line fence. The compound wall and the fence will form its borders. If the length of the fence is 100 m, what is the maximum area that can be cordoned off?