Their percentage stake is how much they put in relative to the pre-money valuation.
Directly above this statement is a bar graph that says "investment 20% equity", while this statement led me to expect it to say "25%". (20% makes more sense to me, but that would mean s/pre/post/)
You have a 2M slice (money) and an 8M slice (pre valuation). The 2 is therefore 20%. I guess "relative" is a bit of an imprecise term. Tried to keep the formulas out of it to make it more approachable, but I'll see if I can be more precise. Thanks!