Let the amount invested in the first account be x and let the amount invested in the second be 8000 - x
We have PRT/100 where P is her principal and r, her rate and t, the time
So in the first account I = x * 5 * 1/100
I = 5x/100
On the other hand if she gets 6% interest in the second account, we have I = PRT/100
So we have I = (8000 - x) * 6 * 1/ 100
I = (48000 - 6x)/100
But the combined interst is 438 so we have
5x/100 + (48, 000 - 6x)/100 = 438
Multiply through by 100
5x + 48, 000 - 6x = 43800
-x = 43800 - 48, 000
-x = -4200
Hence x = 4200. She will have to invest 8000 - 4200 in the second account which is 3800