Suppose r successes were obtained in a sequence of m Bernoulli trials with success probability , and that in an independent second sequence of n Bernoulli trials with success probability , there were s successes.

Show that the maximum of the log-likelihood of all obervations is

.

Is there a formula for this and its then just a case of plugging in the variables?