Always solve such questions using the cumulative distribution approach. P(Xx)={0x<012x0x212<xP(Yy)=P(X3y)=P(Xy13)={0y<012y130y13212<y13fY(y)=dP(Y<=y)dy(y)={0y<016y230y808<y