Usually written as h(x;N,N1,n) where the x has to be pulled from N1 and the total pulled is n so that n-x are pulled from N2 and N1+N2 are N the population being drawn from.
the mean is n(N1/N) = 3(5/50) = .3
σ2 = (N1/N)(N2/N)(N-n)/(N-1) = (5/50)(45/50)(50-3)/(50-1) = .0863
Please consider a tutor. Take care.