$$\small\begin{array}{|c|c|c|c|} \hline \textbf{Process} & \textbf{Current Allocation} & \textbf{Max Requirement}& \textbf{Need} \\\hline \text{P1} & 3 & 7 & 4 \\\hline \text{P2} & 1 & 6 & 5 \\\hline \text{P3} & 3 & 5 & 2\\\hline \end{array}$$Given there are total $9$ tape drives,
So, according to the above table we can see we have currently allocated ($7$ tape drive), so currently Available tape drives $= 2$
So, $P3$ can use it and after using it will release it $3$ resources New Available $=5$
then $P1$ can use it and will release it $3$ resources so New Available $= 8$
and lastly $P2$ so, all the process are in SAFE STATE and there will be NO DEADLOCK
Safe Sequence will be $\bf P3\to P2\to P1$ or $\bf P3\to P1 \to P2.$
Answer will be (B) only.