mixing two signals for amplitude modulation

please help me to find the formula for mixing two signals for amplitude modulation with arduino. this is so important to me because this is an exam from my campus. smart people please help me.

This is the Arduino forum.

(deleted)