Solution of the inverse problem in multigroup transport theory