Multi company, same extension, 1 serveur possible?

I want to know if it is possible to use the same extension, eg extension 101.
I have at my disposal two numbers 123456 and 123457.

Because in my project the company A wants extension 101 but the Company B also wants the extension 101.