This is more of math problem, but my doubt is about the measurement units of the final answer so I figured I'd post it here.
Problem:
A lighthouse is located on a small island 3 km away from a straight shoreline and its light makes 2 revolutions per minute. How fast is the beam of light moving along the shoreline when it is 2 km away from the nearest point to the lighthouse.
Solution:
Let $x$ be distance between the beam and the nearest point and $\theta$ the angle between the line that goes from the lighthouse to nearest point and the one that goes to where the beam is on the shoreline. We know that $\frac{d\theta}{dt} = \frac{\pi}{30}$ radians per second and that $\tan(\theta)=\frac{x}{3}$. We need to find $\frac{dx}{dt}$. Thus
\begin{align*} x &= 3\tan(\theta)\\ \frac{dx}{dt} &= 3\frac{d}{dt}\tan(\theta)\\ &= 3\sec^2(\theta)\frac{d\theta}{dt}\\ &= 3(\tan^2(\theta)+1)\frac{\pi}{30}\\ &= (\frac{x^2}{9}+1)\frac{\pi}{10}\\ \end{align*}
And if we plug for $x=2$ we get $\frac{13\pi}{90}$.
Question:
What is the measurement units of the answer? I thought it should be kilometers per second, because it is only type of answer that makes sense, but how does it follow from the steps in the solution?