it can fit anywhere before the P trap. Keywords to see images of pipe are
"tubular continuous waste" because you have two sink drainholes. You can also make your own "tubular continuous waste" assembly even more complex than what you will see, to add in a Wye that receives the dishwasher drain.
After the " tubular continuous waste" stuff comes the regular drain pipes. They are "DWV" pipes. You can put the dishwasher drain Wye in those pipes too; you are not required to use the "tubular continuous waste" pipes as the connection point. Anything before the P trap is OK. Also, you can have the P trap moved too. Keep it the same height and move it sideways or add a bend to move it somewhere else on the same horizontal plane. My saying this is information, good to know, to know your options; it's not a recommendation to do something specific. Also good to know: the dishwasher drain Wye could be called a Tee or a connection. Also good to know: this Wye / Tee / connector can be installed horizontally if rotated upwards, or 45 degrees up, so the dishwasher drain hose drains into it from above.
I typed "tubular continuous waste dishwasher" into my favorite search engine and I got to see an "ADJUSTABLE CONTINUOUS WASTE (w/dishwasher outlet)"
A repair plumber might be good to call in.