solve for r: r=(12-x)/(12/(r+8))