If you do
problems per hour, after
hours you do
problems.
Similarly, your friend does
problems per hour, so after
he has completed
problems.
Since you have the same number of problems, we deduce
![pt = 8 - 4p - 4t + 2pt](https://img.qammunity.org/2019/formulas/mathematics/high-school/wf7mx4lo0719yi2jj6x8n888m9c9znuq47.png)
which we can rewrite as
![8 - 4p - 4t + pt = 0](https://img.qammunity.org/2019/formulas/mathematics/high-school/wuw9180hi760j39ooh472g55tljzk33nq3.png)
If we solve this equation for one of the two variables, for example t, we have
Since p and t are positive integers, p must be at least 4.
Finding integers solutions require a bit of trial and error, and you can figure out that the only positive and integer solution where p > 10 is
![p=12,\ t=5](https://img.qammunity.org/2019/formulas/mathematics/high-school/tqso5e1ii11d6roki2bijr9umnxx3051r0.png)