According to my book, we can find the amplitude $A$ and the initial phase $\delta$ if we know the initial displacement $x$ and the velocity of the particle at $x$, $v$. However, my book doesn't give any example of this concept. Still, I understand what my book is trying to say. Suppose, the initial displacement is $5m$ and the velocity is $0ms^{-1}$. Voila! we can simply deduct from the information given that the amplitude is $5m$ since the velocity is $0$ at the amplitude. Furthermore, putting the values in $x=A\sin(\omega t+\delta)$$\implies 5=5\sin\delta$$\implies \delta=\frac{\pi}{2}$ we can find the initial phase $\delta$ as well. However, I'm unable to solve more complex problems.
If the initial displacement is $5m$ and the velocity of the object is $5ms^{-1}$ at that point, how will I be able to find the amplitude and the initial phase?