Diane invested her savings in two investment funds. The amount she invested in Fund A was $4000 less than the amount she invested in Fund B. Fund A returned a 5% profit and Fund B returned a 4% profit. How much did she invest in Fund B, if the total profit from the two funds together was $1150?​