In practice, when we try to construct optimal risky portfolios from more than two risky assets, we need to rely on a spreadsheet (which we present in Appendix A) or another computer program. To start, however, we will demonstrate the solution of the portfolio construction problem with only two risky assets and a risk-free asset. In this simpler case, we can find an explicit formula for the weights of each asset in the optimal portfolio, making it easier to illustrate general issues.