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: How to use this forum - please read. - Installation & Troubleshooting - Arduino Forum