I have used an online algebra calculator to check my answer against and I got the answer g= -3 both times so I am 100% positive that the answer is correct.
We know that it is A because the two smaller angles are being added, and we know the sum is 90 degrees. The only equation that satisfies both of these is A.