My solution for a two state in reference to Israel. There is only one way it works. You eliminate both Gaza and the West Bank. Create a country for the Arabs. You create a Country in the far east corner of Jordan.
The Oil rich Arab countries pay for the resettlement of the Hamas Supporters to move there. Those Arabs who stay become under Israeli government but are vetted first. Any connection to Hamas and they’re removed or jailed. All land and home owners are compensated for their loss at fair market value.