Fencing is done along the boundary of the field. So, we need to calculate the perimeter of the field.
Since the field is rectangular in shape, its perimeter is given by:
Perimeter of the field
= 2 × (Length + Width)
= 2 × (50 m + 40 m)
= 2 × 90 m
= 180 m
Cost of fencing the field
= Perimeter of the field × cost per
meter
= 180 m× $30 per m
= $5400