Where A(t) is the amount of money after t years, P is the principal(the initial sum of money), r is the interest rate(as a decimal value), n is the number of times that interest is compounded per unit year and t is the time in years for which the money is invested or borrowed.
Assuming that the two investments are X & Y X + Y = 6300 X = 6300 - Y (1)
9/100X + 4/100 Y = 372 (2) replacing X from (1) into (2) 9/100(6300-Y) + 4/100 Y = 372 567 - 9/100Y +4/100Y = 372 (-9+4)/100Y = 372 - 567 5/100Y = -195 Y = 100*195/5 = 3900 From (1) we can get X X = 6300 - 3900 = 2400