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:

Solving the first equation for x we get:

Substituting the above equation in the second one we get:

Solving for y we get:

Answer: $1714.29.