How would i find the marginal pdfs for this function

[f, XY] (x, y) = 2, y <= x <= 1 , 0 <= y <= 1

0, otherwise

What integration limits would i take for the marginal pdf of X say, between y and 1? or 0 and 1. Same thing goes for marginal pdf of Y.

Thanks