A framework to solve arbitrary set of moment equations arise in the context of moment methods in gas kinetics theory