It is given in the question that
The equation y = 2.54x gives the length y in centimeters corresponding to a length x in inches.
And we have to find the length in centimeters of a 1-foot ruler.
And 1 foot equals to 12 inches. Therefore x equals to 12 inches.
Hence, we will get

Therefore, the length of a 1 foot ruler in cm is 30.48 cm .