The cost of cultivating a rectangular field at Rs.35 per square metre is Rs.71400. If the width of the field is 40 m, find its length. Also, find the cost of fencing the field at Rs.50 per metre.