The question, as you have posed it, requires some of the most elementary of computer operations (multiply a few numbers and save the value).
Now you want the processing on the server side, via a form.
If you want to do more than just waste your time in the course, and perhaps get a passing grade without learning anything, you need to start learning something!
Try:
PHP[
^] and
HTML Forms[
^]
Unless today is the first day of classes, you do not appear to have put much into the course. Why are you taking it?