Do you mean the following?
. . . . .\(\displaystyle \Large{\frac{xp}{x\mbox{ }+\mbox{ }p}\mbox{ }=\mbox{ }2}\)
If so, note that you can solve this for "p=", and then differentiate explicitly to check your work.
If you'd like your work and/or answer checked, please post either or both.
Thank you!
Eliz.