The general form is:
f(x) = A·sin(B(x-C)) + D
- A = amplitude (= 7 in your case)
- B = 2π/period (period = 4 in your case. Solve for B)
- C = phase (horizontal) shift (none in your case, so C = 0)
- D = vertical shift (none in your case, so D = 0)
Plug the values into the general form to get the answer.