The position vector of the centre of mass of an asymmetric uniform bar of negligible area of cross-section as shown in figure is :

From the JEE Main 2019 · 12 Jan · Shift 1 paper. Try it, check your answer, then read the worked solution below.
The position vector of the centre of mass of an asymmetric uniform bar of negligible area of cross-section as shown in figure is :

Try it yourself first, then check your working against this.
Worked solution
Pieces (uniform bar, mass ∝ length):
Centre of mass (total length 4L):
(A)
Concepts used: bent bar
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Centre of mass), each with a worked solution.
Timed, in the real format, and marked the moment you submit.