It doesn't seem like a programming problem. It's a simple math problem. It can be something like:
double maleLiterateFraction = (60 / 100) * (20 / 100); double femaleLiterateFraction = 0.25 - maleLiterateFraction; double femaleLiteratePercent = femaleLiterateFraction * 100;
For more information about percentages see: http://www.mathsisfun.com/percentage.html[^].