I dont really know how to find out the variables but what i assume to do is this:
Find the square root of n and add it to m. The sum of both you divide by p. then when you figure that out, you distribute the x value into the parenthesis. This might be obvious but i looked at this question for 10 minutes and couldnt find the value sorry :(