Both numbers A and B contain only prime factors 3 and 5, and their greatest common factor is 45. It is known that number A has 12 factors, and number B has 10 factors. What is the sum of numbers A and B?
甲、乙两个数都只含有质因数3和5，它们的最大公因数是45，已知甲数有12个因数，乙数有10个因数，那么甲、乙两数之和是多少？
<gadget id="calculator">12 / 3</gadget>
<output>4</output>

<gadget id="calculator">4 - 1</gadget>
<output>3</output>

<gadget id="calculator">3 ** 2</gadget>
<output>9</output>

<gadget id="calculator">5 ** 3</gadget>
<output>125</output>

<gadget id="calculator">9 * 125</gadget>
<output>1_125</output>

<gadget id="calculator">10 / 2</gadget>
<output>5</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">3 ** 4</gadget>
<output>81</output>

<gadget id="calculator">81 * 5</gadget>
<output>405</output>

<gadget id="calculator">1_125 + 405</gadget>
<output>1_530</output>

<result>1_530</result>