Retirement tax questions

Hello

 

I was try to be clearer this time.

I live in a state with no income tax where I get a 1099 NEC. Let's say I make 40K.

I work in another state for 6 months where I do not live permanently and let's say I make 80K on a 1099 NEC and that state has income tax.

The gross total is 120K and I want to put whatever percentage of that amount is allowed in my solo 401k. Let us say calculated (employee and employer amount) is 40K. 

I would rather use the money from the state that had the 1099 NEC with state income tax. How do I alert the software that is where the money is coming from? I am not sure how to be any clearer than this?