Abby invests p dollars, part at c% and part at b%. If her annual income is D dollars, how much did she invest at c%? Your answer should not include complex fractions.