We agreed to live together again married and have kids , for money sake 498a second wife put got bai

I need to send important details , we are both illegal as per law, we had kids, I married again officially so that second wife and children can have decent life, I had given house and tsken care for 8 years her mother and children, from village I brought them to city, after 8 years we kept secrete as I dint want to dupe her, I had boy and girl, now they are 9 and 7 years, as I got work outside country she made FIR against me stating I am not taking care, house also given, in between last year come to know lot of things and proof in mobile. She joined in politics and made case without informing me, l come to know immediately Iapplied bail as my first wife has helped me , I begged her and because of her I am here today otherwise I would have died long back. Can i know how many years it will take I am will to put those mine kids in hostel as it is also my responsibility, what precautions I should take, she wants all money from me even though our marriage is not valid, how to come out of this situation.