Let $x_1,\dots,x_m$ be iid Poisson$(\lambda_1)$ and $y_1,\dots,y_m$ be iid Poisson$(\lambda_2)$ and independent of $x_1,\dots,x_m$. $S_1=\displaystyle\sum_{i=1}^mx_i$ and $S_2=\displaystyle\sum_{i=1}^ny_i$ are independent Poissons with parameters $m\lambda_1$ and $n\lambda_2$.
a) Show that the conditional distribution of $S_1$, given that $S_1+S_2=S$ is binomial with parameters $(s,p)$ where $$p=\frac{m\lambda_1}{m\lambda_1+n\lambda_2}$$b) Test the null hypothesis $H_0:\theta=1$ versus $H_1:\theta<1$, where $\theta=\frac{\lambda_1}{\lambda_2}$. What is $p$ under $H_0$? Should you reject the null hypothesis for large or small values of $S_1$?
c) Suppose that $m=n=25$ and $S_1=6$ and $S_2=18$. Compute the one-sided $p$-value for testing $H_0:\theta=1$ versus $H_1:\theta<1$ using the conditional binomial test suggested above.
I was able to figure out the first part, but need help figuring out parts b and c. Any help will be appreciated.