Multiple dropdowns to URL button

Hi! I’m looking for a tutorial/reference since I have no idea where to even start to create this.

What I want is two dropdown options, combining a choice. For example
“I’m looking for [A/B/C/D] close to [1/2/3/4]” [GO ->]

When pressing GO it takes me to that combined URL, like www.example.com/A-3

Here’s is also a quick design reference

Thanks!