You're right
Don't take the following at face value, I don't study economics:
It is probably supposed to be
ROI = (Revenue - Cost) / Cost
= Profit / Cost
And they probably meant to write $10m for the revenue, so you get a profit of $10m-$8m=$2m, translating to a 25% ROI