Consider the following question.
x2+2ab=(2a+b)x
Subtract(2a+b)xfrombothsides
x2+2ab−(2a+b)x=(2a+b)x−(2a+b)x
x2−(2a+b)x+2ab=0
x1,2=−b±√b2−4ac2a
x1,2=−(−2a−b)±√(−2a−b)2−4⋅×1×2ab2×1
x=2a,x=b
Hence, this is the required answer.