"So, if you work for 25 years at Acme Co and end with a £50,000 salary you will get a pension of 25/80 of £50K or £15,625 p.a less tax. To achieve this you are like to have paid in approximately 18% of your cumulative salary over the 25 years. Assuming you started on £25K and increased linearly to £50K you will have paid in £175K which would then take approximately 12 years to get back, assuming you live that long."
Comparing that with the scheme I am on (not in the UK):
It's calculated from the total you have accumulated. Interest does accrue over the years on that sum.
You get 6.8% p.a. of the final value as income, so that £175K would result in a yearly pension of £11,900. Because interest does accrue while you are building it up, £175K of contributions will turn out to be a decent bit more by the end, even at quite low interest rates.
100 / 6.8 is 14.7 years, so more years to get it back than the Final Salary scheme you describe.
Swings and roundabouts between the two flavours. The final salary scheme probably comes out better in times of high inflation, but only if salaries keep up.
P.S. That 6.8% figure was undoubtedly calculated by actuaries, based on life expectancy of pensioners.