Solve for d square root of 8-x=2x+d