I'm not sure that you have stated your question properly. Try and be a little clearer. Use parentheses, separate lines, anything to set apart what it is you are trying to convey.
Looks like your original equation is
Then, the second part is ambiguous.
Dose and does ?
If that's the case, then substitute 7 for c and solve for d. But I'm not sure that's the case.