Let the sum at 8% be Rs. x.
Let the sum at 5% be 1550 - x.
According to the given condition,
x×8×3100+(1550−x)×5×3100=300⇒24x+(1550−x)×15100=300⇒24x+23250−15x100=300⇒24x−15x=30000−23250⇒24x−15x=6750⇒9x=6750⇒x=67509=750Money lent at 5%Money lent at 8%=1550−750750=800750=1615