a man invested a total of $3,000 in two investments. he made a profit of 3% on the first investment and 4% on the second investment. if his total profit was $107, what was the amount of each investment?