how to caculate using a ruler to measure

the thickness of a 25 pages in a textbook

In a textbook, the pages will be numbered.

Measure 1 inch of pages, and see how many there are.

If there are n pages, then 25 pages will be 25/n inches.