Same profit. Two different percentages.
Markup measures profit against your cost. Margin measures profit against your selling price. A 25% markup does not produce a 25% margin.
Cost$100
25% markup$25
Selling price$125
That $25 profit is 25% of cost, but only 20% of the $125 selling price.