Vcc - pin 14
GND - pin 7
All four elements inside this IC are equal and both inputs at each element are equal as well. So you can chose any 3 elements.
For example input pins on left side of diagram from top to bottom 1,2 4,5 9,10. Corresponded outputs on right side (from top to bottom) - 3,6,8
I did check a datasheet for Mypin - it said SSR output is 24Volts. So I'd recommend to swap 1K and 4.7K resister. Ie use 4.7K instead 1K and 1K instead 4.7k.