Context
Given there are 2 groups that can be modelled as a geometric distribution as follows:
\begin{align*} f(x_i;p_1) &= p_1(1-p_1)^{x_i - 1} \; x_i = 1,2,... \; 0<p_1 <1 \\ f(y_i;p_2) &= p_1(1-p_2)^{y_i - 1} \; y_i = 1,2,... \; 0<p_2 <1 \end{align*}
Suppose that $p1 = p2 = p$. Plot the likelihood for the function for $p$ given that for group 1, $n_1 = 60$, and for group 2, $n_2 = 40$ and the $\sum x_i = 205$ and $\sum y_i = 215$.
My attempt
From what I understand, given that the random variables $X,Y \overset{iid}{\sim} \mathrm{Geometric}(p)$ and that $p_1= p_2$, we can find the joint probability function as follows.
\begin{align} f_{X,Y} &= f_{X}(x)f_{Y}(y) \\ &= p(1-p)^{x_i-1}p(1-p)^{y_i-1} \\ &= p^2(1-p)^{x+y-2} \end{align}
From that, we can take find the likelihood equation for the joint function.
\begin{align} L(x_i,y_i| p) &= \prod_{i = 1}^{n}p^2(1-p)^{x+y-2} \\ &= (p^2)^{n}(1-p)^{\sum_{i = 1}^{n} (x_i + y_i - 2n)} \\ &= p^{2n}(1-p)^{\sum_{i = 1}^{n} (x_i + y_i - 2n)} \end{align}
The log-likelihood function would be as follows.
\begin{align} \ell(x_i, y_i | p) &= \ln{(p^{2n}(1-p)^{\sum_{i = 1}^{n} (x_i + y_i - 2n)})} \\ &= 2n\ln{(p)} + \left(\sum_{i = 1}^{n} (x_i + y_i - 2n)\right)\ln{(1-p)} \end{align}
My question
I am unsure as how to plot the function. Given that there are 2 groups with differing numbers, I think my likelihood equation I have calculated may be wrong. I am unsure if the resultant likelihood and log-likelihood function should contain parameters $n_1$ and $n_2$. Any help would be appreciated to see if I am missing something or I am misunderstanding the question.