Gurpinder,
You are on the right track. The catch to this problem is to realize that you cannot, nor need to, solve for the constants. The other catch is to notice that we are trying to solve for the negative input of an input with a solution. (7 instead of -7.)
First you put in the -7 for the input p and solve to get the equation you mentioned.
#-7# = A(-7)3 + B(-7) - 1
Now, we also know that #-7# = 3, per the problem. Let's put that in. (I am also going to calculate everything out, so it is nice an pretty looking.)
3 = -21A - 7B - 1
Now, we should do the reasonable next step and move that -1 over to the other side to isolate our variables.
4 = -21A - 7B
Okay, now let's put the 7 into our function and see what the problem looks like.
#7# = A(7)3 + B(7) - 1
Calculate it all out and you get...
#7# = 21A + 7B - 1
Notice that the 21A + 7B kinda looks familiar? This is because know the solution for -21A - 7B from earlier. Since we have some information that is a little different, we need to use some strategy and make it look the same. How does -21A - 7B change into 21A + 7B? Divide by -1. So...
4/ (-1) = (-21A - 7B)/(-1) =
-4 = 21A + 7B
So, now we can plug and solve our new equation.
#7# = 21A + 7B - 1
becomes...
#7# = (-4) - 1 = -5
I hope this helps you out. It is a little longwinded, but I wanted to make sure that you followed the logic. Let me know if you have any questions!
Oliver Pope
GMAT Trainer
The Princeton Review