Using Quadratic formula
n^2x^2+n^2=2n^2x+16