A uniform thin bar formed into a L-shaped object of mass $m=2.5kg$ with a longer side of length $l=0.8m$ and a shorter side of length $l/2$. Initially the object is positioned with one end at the origin and the longer side along the $x$ axis. The centre of mass of the object has coordinates $r_{cm}=\frac{2l}{3} \hat i -\frac{l}{12} \hat j$ . I should also add that the object is held in position by a massless wire that makes an angle $\phi=50 ^{\circ} $ with the longer side of the object.
The object is attached to the wall by a pivot (at the origin). Compute the moment of inertia of the object about an axis through the pivot perpendicular to the plane of the object.
I know that moment of inertia is equal to $I=r^2 m $. I broke down the moment of inertia into two components, one calculating $I_1$ over the longer side of L (length of $l$), and the other calculating $I_2$ over the shorter side of L ( length of $ \frac{l}{2} $ ). However, the correct answer provided clearly states that $I_1=\frac{2}{9}ml^2$ and $I_2= \frac{13}{12}\frac{1}{3} ml^2$ (using the parallel axis theorem). I don't know how to achieve these results, my reasoning behind calculating $I_1$ is:
Since $I=mr^2$,
$I_1=\frac{2}{3}m l^2$ (since the longer side is twice as long as the shorter side)
which clearly gives me an incorrect result.
If someone could explain the logic behind calculating the total moment of inertia of this type of object that would be great!