Step 1: Add the two contributions
Total path $=n_{1}d+n_{2}\dfrac{d}{4}$.
Step 2: Common denominator
Write $n_{1}d=\dfrac{4n_{1}d}{4}$, so the sum is $\dfrac{4n_{1}d+n_{2}d}{4}$.
Step 3: Compare the options
This equals $\dfrac{d(4n_{1}+n_{2})}{4}$, option (B). In (A) the factor 4 sits on the wrong index.
Final Answer:
The total optical path is d times 4 n1 plus n2, over 4.
\[ \boxed{\text{(B) }\dfrac{d(4n_{1}+n_{2})}{4}} \]