You need a small active mixer. An ABY box is not good for this, neither is a Y cord, nor a passive mixer. The two inputs on an amp are
usually not separate inputs into a mixer-like circuit, but rather just two passively-connected jacks, one of them with a resistor to pad down the input level. So they are not suitable for plugging two instruments into your amp (in most cases).
Small active mixer.
