The area of square: s · s = s²
The area of rectangle: (s + 6) · s = s(s + 6)
So:
s² + s(s + 6) = 56
s² + s(s + 6) - 56 = 0
Answer D.