The moment of inertia of a rod about an axis perpendicular to the rod and passing through one end is 3ML2​. Two rods are in the X and Y-axis and they both contribute to the moment of inertia about the Z-axis. The rod alongthe Z-axis does not contribute to the moment of inertia about the Z-axis. Therefore the total moment of inertia of the system is3ML2​+3ML2​=32ML2​