(31days would give a different result") - however the author of the question needs to clarify the number of days that the oldest wife can live on her 25 rupaye (one month is leaves too much variance)
26
(ie 28 days lunar month, or 30 /31 days), working it out as 1/12 of a year (being on month) gives an even greater degree of error.