The triangle (call it T ) has base and height 4, so its area is 1/2*4*4 = 8. Then the joint density function is
where T is the set
(a) I've attached an image of the integration region.
(b) X and Y are independent if the joint distribution is equal to the product of their marginal distributions.
Get the marginal distributions of one random variable by integrating the joint density over all values of the other variable:
Clearly,
, so they are not independent.