Given:
- System address space $(VA)=32\:bits$
- Page size $(PS)=4KB$
- Total pages used by a process $(N)=2000\: pages$
- Page table entry size $(PTE)=4B$
It is given in the question that OS allocates a page(means single page) for the outer page directory upon process creation.
So, total number of bits needed to represent entries in outer page table $= log(PS/PTE) = log(2^{12}/2^2) = 10\:bits$
And total number of bits needed to represent entries in inner page table $=32-10-12 = 10\: bits$
For $X:$
In each inner page table we can store $2^{10}$ entries. So, minimum number of page tables$(PT)$ needed to store $2000$ pages will be $\lceil 2000/2^{10}\rceil = 2\: PT$
$\therefore X=2 + 1(for \:outer\: PT) = 3$
For $Y$:
For occupying maximum pages in 2-level page table, we need to place atleast one $PTE$ from $2000$ pages in every page of the inner page table equating to $2^{10}\: PT$.
$\therefore Y=2^{10} + 1(for \:outer\: PT) = 1025$
The value of $X+Y= 1028$