Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: if a is a positive integer , and if the units digit of a ^ 2 is 9 and the units digit of ( a + 1 ) ^ 2 is 4 , what is the units g digit of ( a + 2 ) ^ 2 ?
