You buy $10,200.00 in stock A and stock B, paying 5.3% and 7.1%, respectively. If the interest you earned for the year was $640, how much was invested in stock A and how much in B?