Two components sharing one pin slot

I have two components which are going to share one digital pin slot. How can I deal with this problem? I have tried to parallel them on the breadboard and it failed. So could anyone please help me with this problem?

Thank you!!!

Yes, no problem. To get started please have a look here: http://forum.arduino.cc/index.php?topic=148850.0