Tricky situation ((((HUGS PATAGONIA)))
I agree w/ mostly everything already said...check out some parenting websites and pint rest for ideas for some creative solutions

All I can add otherwise is that in my state it is actually "illegal" for children of opposite sex over the age of 5 to reside in same bedroom- not meaning criminal but if dcf or anyone brought a motion to court against you....most likely you would be facing a abuse/ neglect charges. Generally, if there were no other issues they would ask if you were able to provides immediatelya temp solution that the court found accept and give you 30- 90days max to resolve the situation completely or they would take your children out of home until you could provide appropriate living conditions. Bit interestingly enough... there is no requirement that stated that adults must reside in a bedroom w/ a door just children...so I know a lot of ppl who have moved into the living room at least temp until they could afford a lrgr living space. Or figure something else out.
__________________
"The woods are lovely, dark, and deep
But I have promises to keep
And miles to go before I sleep
And miles to go before I sleep"