According to the question,
Let A be the matrix showing number of attempts made in three villages X, Y and Z.
And, B be a matrix showing the cost for each mode per attempt.
Now, the total cost per village will be shown by AB.
Hence, the total cost incurred by the organisation for three villages separately is
X: ₹30,000
Y: ₹23,000
Z: ₹39,000