An inheritance of $5,000 is divided among three investments yielding $240 in simple interest per year. The interest rates for the investments are 3%, 4%, and 6%. The difference in the amount of money invested in the fund paying 6% and the amount invested for the least return is the same as the amount invested at 4%. Find the amount of each investment