We have $X$ cubes with $8000\le X\le10000$. We have built columns with $2×2$ bases, leaving 2 cubes. We have also built columns with $3×3$ and $5×5$ bases, leaving 4 cubes in these cases.
How can we calculate the number of cubes?
I have created the equations $$n\equiv2\bmod4$$ $$n\equiv4\bmod9$$ $$n\equiv4\bmod25$$ but I am not sure how to proceed in calculating the right number. What is the best way to calculate it? Thanks for help.