A $12,000 portfolio is invested in a risk-free security and two stocks. The beta of stock A is .8 and of stock B is 1.4. One-half of the portfolio is invested in the risk-free security. How much is invested in stock B if the beta of the portfolio is .45?