Switching between inactive scenes

I want to switch between scenes, but not active scenes. For example. I am in menu, I click play and scene 1 comes up. I go back to menu, I click a button, that doesn’t switch my menu scene, in the menu and when I click on play now scene 2 comes up instead of scene 1.
I’m quite new to unity and coding in general, so if possible explain in great detail how it works.

Scene management can be a bit tricky. There’s really no shortcut to learning it. Here’s a link to a short tutorial on the topic. It’s only 7 minutes long but that will get you started. Unity3D Scripting - Scene Manager - YouTube