stepper motor and solenoid valve simultanious control

Im new to arduino and my current project requires me to control a nema 17 stepper motor and solenoid vale simultaneously. The system requires the valve to open when the motor is moving.

any help would be appreciated

Motor:
https://www.jaycar.co.nz/nema17-stepper-motor/p/YM2756

solenoid:
https://www.jaycar.co.nz/12vdc-solenoid-valve/p/SS0905

Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.
Posting images:

Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags, use the </> icon in the posting menu.
[code]Paste your sketch here[/code]

So what's stopping you from actually building the project? I don't see a question there.