2 analog output to 1 analog input

I would use an analog multiplexer, like this one

https://de.aliexpress.com/item/32652770424.html