Since we're given $\sin\frac{\theta}{2}=\frac{3}{5}$, we can use the Half-Angle Formula for Sine to write $\tan\theta$ as a function of $\sin\frac{\theta}{2}$.
Now normally the Half-Angle Formula for Sine is $\sin\frac{\theta}{2}=\pm\sqrt{\frac{1-\cos\theta}{2}}$, with the $\pm$ being dependent on which quadrant the angle $\frac{\theta}{2}$ lies within. However, for sake of simplicity, we'll just skip to starting with the equation $\left|\sin\frac{\theta}{2}\right|=\sqrt{\frac{1-\cos\theta}{2}}$ instead.
$\left|\sin\frac{\theta}{2}\right|=\sqrt{\frac{1-\cos\theta}{2}}$
$\left(\left|\sin\frac{\theta}{2}\right|\right)^2=\left(\sqrt{\frac{1-\cos\theta}{2}}\right)^2$
$\sin^2\left(\frac{\theta}{2}\right)=\frac{1-\cos\theta}{2}$
$2\sin^2\left(\frac{\theta}{2}\right)=1-\cos\theta$
$\cos\theta=1-2\sin^2\left(\frac{\theta}{2}\right)$
$\sec\theta=\frac{1}{1-2\sin^2\left(\frac{\theta}{2}\right)}$
$\sec^2\theta=\frac{1}{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}$
$\sec^2\theta-1=\frac{1}{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}-1$
$\tan^2\theta=\frac{1}{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}-\frac{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}$
$\tan^2\theta=\frac{1-\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}{\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}$
And in the end we get
$\tan\theta=\pm\frac{\sqrt{1-\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}}{1-2\sin^2\left(\frac{\theta}{2}\right)}$
Note that the $\pm$ is still dependent on quadrant.
From here, we can simply substitute in for $\sin\frac{\theta}{2}$ with $\frac{3}{5}$.
$\tan\theta=\pm\frac{\sqrt{1-\left[1-2\sin^2\left(\frac{\theta}{2}\right)\right]^2}}{1-2\sin^2\left(\frac{\theta}{2}\right)}$
$\tan\theta=\pm\frac{\sqrt{1-\left[1-2\left(\frac{3}{5}\right)^2\right]^2}}{1-2\left(\frac{3}{5}\right)^2}$
$\tan\theta=\pm\frac{\sqrt{674}}{7}$