There is a six-digit number 3158x9 that is divisible by 3, what is the sum of all solutions of x.
有一个六位数3158x9能被3整除，x的所有解的和是多少．
<gadget id="calculator">1 + 4 + 7</gadget>
<output>12</output>

<result>12</result>