In general, for $n$ assets, we can combine them to the overall return $\mu$ and risk $\sigma$:
$$
\left{
\begin{array}{rcl}
\mu &=& \boldsymbol{\mu}^T \mathbf{w}\
\sigma^2 &=& \mathbf{w}^T \Sigma \mathbf{w}
\end{array}
\right.
$$
where $\mathbf{w}=[w_1, \dots, w_n]^T$, $\boldsymbol{\mu}=[\mu_1, \dots, \mu_n]^T$, and $\Sigma$ is the covariance matrix of these $n$ assets.