The correct answer is option 2 i.e. 2.
a2+2a+b2−2b+49c2−56c+18=0
a2+2a=(a+1)2−1b2−2b=(b−1)2−1
49c2−56c=49(c2−78c)=49((c−74)2−4916)=49(c−74)2−16
(a+1)2−1+(b−1)2−1+49(c−74)2−16+18=0
(a+1)2+(b−1)2+49(c−74)2−1−1−16+18=0⇒(a+1)2+(b−1)2+49(c−74)2=0
Since the sum of squares is zero, each term must be zero:
(a+1)2=0⇒a=−1(b−1)2=0⇒b=1(c−74)2=0⇒c=74
a−b+7c=−1−1+7(74)=−2+4=2