Adding a factor to 2 values
<p>A method calculates the percentage of 2 given in points (for example 15/20 and 16/20) and returns the total %.</p>

<p>But the problem is when i try to add weight to those values.
Meaning standard weight factor 1 and weight factor 2 for both values are set on 1 (normal % calculation).</p>

<p>But how exactly do i add weights to them? 
Assuming i want to add a weight factor of 2 to the first value and leave the second one to standard(1). (So a certain score is more important then a other, hence the % changes.)</p>

<p><strong>Calculation with integers</strong><br>
input 15 and 16  (score on /20)<br>
With default weight factors (1 &amp; 1) the overal percentage would be 77</p>

<p>If the weight factors are changed to 2 (for 15) and standard 1 (for 16) the total % would be 76.</p>

<p>What would be the best way to implement this, cannot find anything about this.</p>

<p>Regards.</p>
