What is the problem? Convert them to numbers. Multiply said numbers. Then output the result however you desire.
My guess is your real problem is in the text processing of the strings you will be given. But even that is not a big problem. Can you find what lies to the right of an "=" symbol? Can you use tools, for example, eval, to then produce a number?