Group theoretical calculation of traces and determinants occuring in dual theories