Then the mass and centre of mass of the \(R_1\) end are
\begin{equation*}
M_1=\dblInt_{\cR_1} \rho_1(x,y)\,\dee{x}\,\dee{y}
\end{equation*}
and
\begin{equation*}
(\bar X_1,\bar Y_1)\quad\text{with}\quad
\bar X_1 = \frac{\dblInt_{\cR_1} x\,\rho_1(x,y)\,\dee{x}\,\dee{y}}{M_1},\
\bar Y_1 = \frac{\dblInt_{\cR_1} y\,\rho_1(x,y)\,\dee{x}\,\dee{y}}{M_1}
\end{equation*}
and the mass and centre of mass of the \(R_2\) end are
\begin{equation*}
M_2=\dblInt_{\cR_2} \rho_2(x,y)\,\dee{x}\,\dee{y}
\end{equation*}
and
\begin{equation*}
(\bar X_2,\bar Y_2)\quad\text{with}\quad
\bar X_2 = \frac{\dblInt_{\cR_2} x\,\rho_2(x,y)\,\dee{x}\,\dee{y}}{M_2},\
\bar Y_2 = \frac{\dblInt_{\cR_2} y\,\rho_2(x,y)\,\dee{x}\,\dee{y}}{M_2}
\end{equation*}
The mass and centre of mass of the entire dumbbell are
\begin{align*}
M&= \dblInt_{\cR} \{\rho_1(x,y)+\rho_2(x,y)\}\,\dee{x}\,\dee{y}\\
&= \dblInt_{\cR} \rho_1(x,y)\,\dee{x}\,\dee{y}
+\dblInt_{\cR} \rho_2(x,y)\,\dee{x}\,\dee{y} \\
&= \dblInt_{\cR_1} \rho_1(x,y)\,\dee{x}\,\dee{y}
+\dblInt_{\cR_2} \rho_2(x,y)\,\dee{x}\,\dee{y}\\
&=M_1+M_2
\end{align*}
and \((\bar X,\bar Y)\) with
\begin{align*}
\bar X &=\frac{\dblInt_{\cR}
x\{\rho_1(x,y)+\rho_2(x,y)\}\,\dee{x}\,\dee{y}}{M}\\
&=\frac{\dblInt_{\cR_1} x\,\rho_1(x,y)\,\dee{x}\,\dee{y}
+\dblInt_{\cR_2} x\,\rho_2(x,y)\,\dee{x}\,\dee{y}}{M}\\
&=\frac{M_1 \bar X_1 + M_2 \bar X_2}{M_1+M_2}\\
\bar Y &=\frac{\dblInt_{\cR}
y\{\rho_1(x,y)+\rho_2(x,y)\}\,\dee{x}\,\dee{y}}{M}\\
&=\frac{\dblInt_{\cR_1} y\,\rho_1(x,y)\,\dee{x}\,\dee{y}
+\dblInt_{\cR_2} y\,\rho_2(x,y)\,\dee{x}\,\dee{y}}{M}\\
&=\frac{M_1 \bar Y_1 + M_2 \bar Y_2}{M_1+M_2}
\end{align*}
So we can compute the centre of mass of the entire dumbbell by treating it as being made up of two point particles, one of mass \(M_1\) located at the centre of mass \((\bar X_1,\bar Y_1)\) of the \(\cR_1\) end, and one of mass \(M_2\) located at the centre of mass \((X_2,Y_2)\) of the \(\cR_2\) end.