Recall that the general shape of a sine function is of the form

where A is the amplitude of the function, D is the midline, the number C/B is the phase shift and the number is 2*pi/B is the period of the function.
In our case, we are told that A=4 and D=3. Since we are told a value of the period, but nothing about the phase shift, we will assume that the phase shift is 0. Then, we have the following equations

and

Form the first equation, we can determine that C=0.
From the last equation, we can multiply both sides by 5*B, so we get

Finally, we divide both sides by 8, so we get

So, we end up with the following formula
