I am trying to find the weighting of stocks in a portfolio (both variables should be between 0 and 1 but added together should be 1).
the equation is: $1.2353 = x(1.2) + y(0.9)$ I have it simplified down to where I can find $y$ in terms of $x$:
$1.2353 = x(1.2) + (1-x(0.9))$
But I don't know where to go from here
Once you get the equation you got, the rest is simple algebra: \begin{align} 1.2353 &= 1.2x + 0.9(1-x) \\ 1.2353 &= 1.2x + 0.9 - 0.9x \\ 0.3353 &= 0.3x \\ 0.1117\bar6 &=x \end{align} Then, to find $y$: \begin{align} y &= 1 - x \\ &= 1 - 0.1117\bar6 \\ &= 0.8882\bar3 \end{align} Hope this helps!