Let AB=BC=L, and the mass of each uniform rod segment be m.
Let the point of suspension A be the origin (0,0).
Taking the downward vertical as the reference line.
Coordinates of the center of mass of rod AB (G1): x1=−2Lsinθ,z1=−2Lcosθ
Coordinates of the center of mass of rod BC (G2): x2=−Lsinθ+2Lcosθ,z2=−Lcosθ−2Lsinθ
For rotational equilibrium about the suspension point A:
τA=0⟹mg∣x1∣+mgx2=0⟹xcm=0
m(−2Lsinθ)+m(−Lsinθ+2Lcosθ)=0
−23Lsinθ+21Lcosθ=0⟹3sinθ=cosθ
tanθ=31