The total cost to fence is Rs 18400
Solution:
Given that, 4 hectare square shaped farm
Area of square shaped farm = 4 hectares
1 hectare = 10,000 square meter
Therefore,
4 hectares = 40, 000 square meter
Hence area of farm = 40,000 square meters
The area of square is given by formula:

Where "s" is the length of side
Therefore,

Find the perimeter of square:
Perimeter = 4s
Perimeter = 4(200) = 800 meter
Given cost of fencing is Rs 23 per meter
Hence total cost for fencing 800 m is:

Thus total cost to fence is Rs 18400