n(b-x)=Cx make x the subject

n(b-x)=Cx

nb -nx = Cx
nb = Cx + nx
nb = x(C+n)
x = nb/(C+n)