Consider a theory with a nonabelian gauge symmetry, and also a U(1) gauge symmetry. The theory contains left-handed Weyl fields in the representations (Ri,Qi), where Ri is the representation of the nonabelian group, and Qi is the U(1) charge. Find the conditions for this theory to be anomaly free.