A rectangle can be divided into $n$ equal squares. The same rectangle can also be divided into $n + 76$ equal squares. Find the value of $n$.

Let's think step by step and output the final answer within \boxed{}.
user