Let x be the amount that Ahmad invested in Fund A, and y be the amount invested in Fund B, if together returned a 7% profit, we can set the following system of equations:
[tex]\begin{gathered} x+y=4000, \\ 0.10x+0.03y=0.07\cdot4000. \end{gathered}[/tex]Solving the first equation for x we get:
[tex]\begin{gathered} x+y-y=4000-y, \\ x=4000-y\text{.} \end{gathered}[/tex]Substituting the above equation in the second one we get:
[tex]0.10(4000-y)+0.03y=0.07\cdot4000.[/tex]Solving for y we get:
[tex]\begin{gathered} 400-0.10y+0.03y=280, \\ -0.07y=-120, \\ y=1714.2857 \\ y\approx1714.29 \end{gathered}[/tex]Answer: $1714.29.