Suppose a utility function $u=x_1^ax_2^b$ with $a+b=1$. The following formula finds the values for $x$:
$x_1 = \frac{am}{p_1}\\ x_2 = \frac{bm}{p_2}$
But what if the utility function looks like $u=cx_1^adx_2^b$ so has additional factors bevore $x_i$? Can the formula above be edited accordingly?