when a rod is inclined at an angle

with d axis.. d moment of inertia is ml^2sin(^2)

whole divided by 12..
therefore the moment of inertia of one rod in d given is {ml^2}/24.
therefore the moment of inertia of d compound body abt d given axis is d answer u gave.