It first sounded like r was fixed and was random
Then it sounded like r was random?
I was thinking that you had and
I still think you want "I am required to find the probability density function for Y."
If so, the marginal density of Y would be the integral of the joint density from a to b with