We are given that cement, sand, and gravel are in a ratio 1:3:5, which means every 1 kg of cement needs a 3kg of sand and 5 kg of gravel, or vice verse. And we want to know what is the greatest number of kilograms of this mixture can be made with 5 kilograms of cement.
We have 5kg of cement and we want to know what x and y are
$$\frac{1\ cement\ :\ 3\ sand:\ 5\ gravel}{5:\ x:\ y}$$
Notice that cement is multiplied by 5, we can do the same thing for sand and gravel to get the portion needed for this mixture. And it gives us this $$\frac{1\ cement\ :\ 3\ sand:\ 5\ gravel}{5\ cement\ :\ 15\ sand\ :\ 25\ gravel}$$
Add it all up: 5 + 15 + 25 = 45
Answer: E