Just to clear up a misunderstanding - I wasn't suggesting that any Israeli or Palestinian who currently in Israel or the West Bank/Gaza should leave, and I think that all Palestinian Arab citizens of Israel should remain in Israel unless they choose otherwise. The opposite: I think that the two-state solution should primarily take into account the needs and wellbeing of all those who are already here. In my previous post was just saying that I think that the descendants of Palestinian refugees from 1948 who have lived in surrounding Arab countries as stateless refugees since 1948 (eg Lebanon and Syria) should be offered citizenship of those countries, since by now virtually all of them have lived all of their lives in those countries. I'm not aware of any Jewish Israelis who want to return to live in Arab countries and I don't think that would be realistic, but where there are reasonable foreign relations (eg Morocco and Tunisia) many Israeli Jews with heritage from those countries return for "roots" trips or religious festivals. It would be amazing if those with Syrian, Iraqi or Yemenite heritage (for example) could visit those countries. But all that is up to those countries, not Israel.
Back to your actual question. As others have mentioned in the meantime, dividing land by square km per population doesn't work as natural resources are not evenly spread, and Israel has a lot of basically uninhabitable desert in the south. Also a goal should be to uproot as few people as possible, which is why all proposals for a 2-state solution start from the "green line" (the 1948 armistice lines, i.e. the current division into the State of Israel and West Bank/Gaza), with certain land swaps so the biggest settlement blocs near the Green Line stay in Israel. There is no lack of expert proposals about borders etc from the Oslo Accords, the Geneva Initiative etc - there is a lack of political will and mandate on both sides to implement a 2-state solution, and the question of Jerusalem is complicated. But personally I would be happy with any solution that is agreed on by the 2 sides.
I don't think a one state solution is a viable option (especially not after 7 Oct which destroyed trust even further). It sounds good on paper but isn't workable for a number of reasons: first, this is primarily a national conflict in which both sides want to realise our national aspirations and govern ourselves. A one-state solution would go against what most Israelis and Palestinians want, and to be honest, aside from a few utopian socialists, most of the people who discuss a one state solution implicitly mean they want one state which is THEIR state, not some kind of binational arrangement.
I also think that realistically a one-state solution would be an incredibly weak state. Both populations carry different histories and deep national traumas, are highly suspicious of one another, are culturally different, there is a big socioeconomic gap, and we speak different languages. Past experience shows that states with a 50:50(ish) mix of different national identities are likely to be unstable, and the global trend is generally towards minority national groups to call for independence.
So for this reason I think the 2-state solution, however difficult it might be to achieve, is the only practical option, and it's the only option which gives Israelis and Palestinians the real ability to determine our own futures and to live securely within our own borders. I would hope that gradually there would be cooperation and alliances eg in trade both between the 2 states and in the wider region.