He offers as many flowers at each temple as there are temples in the city. Let number of temples be ‘x’. ⇒ He offers x number of flowers at each temple. Total number of flowers needed = x × x = x2 . Given, total number of flowers = 125 × 5 = 625. As per problem, ⇒ x2 = 625 ⇒ x = 25 ∴ The number of temples in the city = 25.