Step 1: Understanding the Concept
For a carboxylic acid the COOH carbon is C-1. The chain is the longest one containing it, and the suffix is -oic acid.
Step 2: Detailed Explanation
Count carbons: \(\text{CH}_3\) (6), CH (5), CH (4), CH (3), CH (2), COOH (1). So there are 6 carbons.
Double bonds are between C2-C3 and C4-C5, giving "hexa-2,4-diene" and the acid name hexa-2,4-dienoic acid.
(A) hexanedioic acid is a diacid, (C) and (D) have the wrong number of carbons.
Final Answer:
The name is hexa-2,4-dienoic acid, option (B).
\[ \boxed{\text{Hexa-2,4-dienoic acid}} \]