This is a great example of when trying to condense two parts on a single stave causes more problems than it fixes.
If there are lots of accidentals or both parts are moderately independent, just don’t do it. If you need to save paper that much, just have a two staves on each piece of paper – top part on one, bottom part on the other.
End rant – now to go find some staff paper and get to copying.