(1) Compute masses:

mtotal=mrect+mtriρArect+ρAtriρ(4)(3)+ρ(12)(4)(2)12ρ+4ρ16ρ

(2) Consider symmetries of rectangle:

CoMrect=(xrect,yrect)=(0,3/2)

Therefore Myrect=0 and:

yrect=Mxrectmrect

Therefore:

Mxrect=yrectmrect(3/2)12ρ18ρ

(3) Consider symmetry of triangle:

xtri=0Mytri=0

(4) Compute Mxtri by integration:

w(y)=4+042(y3)102y Mxtri=35ρyw(y)dyρ35y(102y)dy44ρ/3

(5) Optional step: infer ytri:

ytri=Mxtrimtri44ρ/34ρ11/3

(6) Additivity of moments:

Mxtotal=Mxrect+Mxtri18ρ+44ρ/398ρ/3 Mytotal=Myrect+Mytri=0+0=0

(7) Compute CoM:

x=0,y=Mxtotalmtotal y98ρ/316ρ49/24

Thus:

CoM=(0,49/24)