The weight of an object varies on different planets. Solve the equation w=Cr^-2 for r

Cr^-2 = W,

C/r^2 = W,
Invert both sides:
r^2/C = 1/W,
Multiply both sides by C:
r^2 = C/W,
r = sqrt(C/W).