Mr. Nielsen invested $250,000 in two different automobile companies. The first earned a 5% profit, and second earned a 10% profit. If Mr. Nielsen made 3 times as much profit from the 10% investment as he did from the 5% investment, how much did he invest in the company that made 5%?