A differential amplifier with a common-mode input of 500 mV and a difference-mode input of 30 mV has an output of 5 mV due to the common mode input and 3 V due to difference-mode input. Find the difference-mode and the common-mode gains respectively.