Solve y = x² + 4x + 4 and y = -x² + 2x - 1