Answer: He can bake 9 cakes in 7.5 hours.
Explanation:
Given : Ernesto baked 3 cakes in 2.5 hours.
Ratio of number of cakes time =
(1)
Let x be the number of cakes made in 7.5 hours.
Then, Ratio of number of cakes time =
(2)
We assume that the number of cakes baked varies directly with the number of hours.
Then from (1) and (2), we have

Multiply 7.5 on both the sides, we get

Hence, he can bake 9 cakes in 7.5 hours.