Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: the area of one square is x ^ 2 + 4 x + 4 and the area of another square is 4 x ^ 2 − 12 x + 9 . if the sum of the perimeters of both squares is 32 , what is the value of x ?
