Diane invested her savings in two investment funds. The $2000 that she invested in Fund A returned a 7% profit. The amount that she invested in Fund B returned a 2% profit. How much did she invest in Fund B, if both funds together returned a 4% profit?