Can someone explain to me how to solve this system of equations for the parameters $a$, $k$ and $\phi$? I already tried solving the last equation for a and plugging it into another equation, but I guess that doesn't work.
$0=a\sin(5k-\phi)$
$0=a\sin(23k-\phi)$
$0.3=a\sin(-\phi)$
From the third equation, you see that $a$ has to be non-zero. Notice then that the first two equations
$$0 = a\sin(5k-\phi),$$ $$0 = a\sin(23k-\phi),$$
do not specify $a$ at all, because whatever $a$ is, you must have that
$$\sin(5k-\phi) = 0,$$ $$\sin(23k-\phi) = 0.$$
When is $\sin(x)=0$? It happens exactly when $x$ is a multiple of $\pi$, so you get that
$$5k-\phi = n\pi,$$ $$23k-\phi = m\pi,$$
for some integers $m,n\in\mathbb{Z}$, so let's say that some pair $(m,n)$ has been chosen. Subtracting the first equation from the second, we get
$$18k = (m-n)\pi,$$
so
$$k = \frac{m-n}{18}\pi.$$
Plug this into the first equation to get
$$\phi = \frac{5}{18}(m-n)\pi-n\pi.$$
Concerning the third equation
$$0.3 = a\sin(-\phi),$$
you see that we can simply choose $a$ to make it all fit, so
$$a = \frac{0.3}{\sin(-\phi)}.$$