If the centroid of the triangle having its vertices ,(1, a), (2, b) and (c2 ,- 3) lies on X-axis, then
a=3
b=3
a+b=3
a+b=-3
The coordinates of the centroid are3+c23,a+b−33 It lies on x-axis. So, its y- coordinates is zero
a+b−33=0⇒a+b=3