The nah term of another sequence is given by:
an² +bn.
The 3rd term is 9 and the 6th term is 126.
Find the value of a and b