If you're not leaving any information out of the question about the time period of income and bonds etc. then you have a system of equations you need to set up. If x is the amount in the 4% and y is the amount in the 7% then you have the two equations:
x + y = 45000
.04*x + .07*y = 2750
Solve for x and y and there you go.