Caitlin invested money in two mutual funds – a stock fund and a balanced fund. She invested three times as much in the stock fund as in the balanced fund. At the end of year, the stock fund earned the equivalent of 17% simple interest and the balanced fund earned 3.5%. If her total gain was $1125, determine how much she invested in each fund. Round to the nearest dollar, if necessary.