If I1 and I2 are the moments of inertia of two rigid bodies with respect to a given fixed axis, the moment of inertia of two bodies together, the compound body, is given by
Itot = I1 + I2