The question tells us that 2.54 cm is equivalent to 1 inch. The next part wants to know what 5.08 cm is in inches. We can just divide 5.08 by 2.54 to figure that out.
5.08/2.54 = 2
This means that 5.08 cm is 2 inches.
The next one wants to know how many centimeters 10 inches is. We can 2.54 and multiply it by 10.