Sounds like a homework problem...
Basically, it works like this:
Scan the reverse Polish expression from left to right, recognizing
operands and operators. When you see an operand, push it on a stack.
When you see a unary operator (like unary "-"), pop one operand off
the stack, apply the operator, and push the result on the stack. When
you see a binary operator (like "-" or "+" or "*" or "/"), pop two
operands off the stack, apply the operator, and push the result.
When you come to the end of the input expression, you should have one
item on the stack, and that's your answer.
If you're doing this symbolically (and it sounds like you are), put
parenthesis around infix expressions as you create them. The result
will be longer than it needs to be -- for example, the parentheses in
"(a * b) + c" are redundant in most languages -- but it will be
mathematically correct.
I hope this helps.
Louis