Answer:
[tex]ac = d - r \\ a = (d - r) \div c \\ \\ a = \frac{d - r}{c} [/tex]
I hope I helped you^_^