If x and r are directly proportional and x = 5 when r = 25, then what is x when r = 40?
I'm pretty sure the answer is 8, because when r = 25 and x = 5, you have to divide r by 5 to get x. This way, because 40/5 is 8, I think that would be the answer you're looking for.
So x = 8.