I have two numbers which summed up are considered to be $100\%$.
The first number $n_1$ should decide the percentage amount.
For e.g.,
$n_1 = 5$
$n_2 = 15$
so the percentage in this case would be $25\%$.
How do I calculate this? :) I mean how do I get the formula?