multiplying values from two text files

Im very new to programming. But I would like to write a script which extracts and multiply values from 2 txt and output as a new file. Can someone please teach me how to write it? Thank you so much
for example
File A File B
1 34 1 2
2 13 2 2
3 8 3 3

File C output
1 68
2 26
3 24

Is this homework? If so you would need to post it here:
Homework & Coursework Questions - The UNIX and Linux Forums

PLease describe!!!!