Working together, pipes $A$ and $B$ can fill an empty tank in $10hours$. they worked together for $4$ hours and then $B$ stopped and $A$ continued filling the tank till was full. It took a total of $13hours$ to fill the tank. How long would it take $A$ to fill the empty tank alone?