An ancestry DNA G25 calculator that accepts 2 known ethnicities as a parameter.
$sampleUnscaled = [];
$knownPopulations = ['North_African:Egyptian', 'North_West_European:German'];
for ($percentage1 = 25; $percentage1 <= 100; $percentage1++) {
for ($percentage2 = 25; $percentage2 <= (100 - $percentage1); $percentage2++) {
Adjust $percentage1 and $percentage2 to be equal to your known percents for the first and second known ethnicity.