Let a = fraction of money invested at 4% and b = fraction of money invested at 5.5%
Then 23000a(1.04)2 + 23000b(1.055)2 = 24930 (That is after 2 years this is total money from both investments including the original principal). Simplifying we get
24876.8a + 25599.575b = 24930 also
a + b = 1
Solving for a & b from both equations, we find a = .9264 and b = .0736
So, 23000(.9264) = 21,307.20 was invested at 4% and
23000(.0736) = 1692.80 was invested at 5.5%