if ( x + 3 ) ^ 2 / ( 2 x + 15 ) = 3 , then the difference between the two possible values of x is :
import math
n0 = 3.0
n1 = 2.0
n2 = 2.0
n3 = 15.0
n4 = 3.0
t0 = n0 * n3
t1 = n0 * 3.0
t2 = t0 - t1
t3 = math.sqrt(max(0, t2))
answer = t3 * 2.0
print(answer)