Parametric equations of the general cycloid through the beginning $(0,0)$ are
$$x(t)=\frac{2t-\sin2t}{2d}$$
$$y(t)=\frac{1-\cos 2t}{2d}$$
How can we determine $d$ such that the cycloid goes through the point $(a,b)$?
Attempt: Assume for simplicity that $(a,b)=(1,1)$. We are looking for $t$ such that $x(t)=y(t)=1$. This gives us $d=t-\frac12\sin2t$ and $d=\frac12(1-\cos 2t)$. How should we proceed?
First eliminate $d$:
$$\frac{2t-\sin2t}{1-\cos2t}=\frac ab$$
Solve that for $t$. You will have to do so numerically, since this is a transcendental equation. Once you have a suitable $t$ (there might be several to choose from, or even infinitely many), computing $d$ is easy.