Translation of the sine curve

Adjust the sliders to make the green sine curve overlap the red graph. Find the values a, b, c and d, where y = a[math]\cdot[/math]sin(b(x-c)) + d
Try the same for the dark yellow graph.

Information: Translation of the sine curve