I Have magento installation with two websites on the same domain, each website has two stores, how can I get the two websites base URL or what should I write in each website base url to access it on the front end, can anyone help me
Why are both websites on the same domain? What URLs would you like each website to be accessed at?
Please read the documentation for managing mutliple websites: http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_over.html
You should modify your web server config to set the MAGE_RUN_CODE for the website that you want to run for the particular vhost.
One website for Egypt the currency will be Egyptian pound with two stores English and Arabic and the other for middle east countries the currency will be dollar also it will be with two stores English and Arabic
You should see this video https://www.youtube.com/watch?v=CKZp82Wn38Y
It can help you to resolve your requirements