The fence would cover the perimeter of the triangle.
The perimeter is the sum of the 3 sides:
120 + 80 + 50 = 250 meters.
There will be a 3 meter space for the gate, so subtract 3:
250 - 3 = 247 meters of fence is needed.
Now multiply the amount of fences needed by the price per meter:
247 x 20 = Rs 4,490