Made a Java program, which tries to calculate the %'s through iterations. Seems to consistently end up with ~7,5% and ~8,8% for the percentages specified above, so for some reason I am 0,5% off...

Either a bug in my Java code or a fault in the reasoning above... Can anyone see any flaws in the calculations above?