The best way to approach this problem is to work backwards. The final ratio is $1:3:4$. To make this answer more concrete, let's imagine that there are white balls, red balls, and black balls. This means that for $1$ white ball, there will be $3$ red balls, and $4$ black balls. One important thing to note about ratios is that they can be scaled up:
This means that $1:3:4=6:18:24$. Scaling this ratio is useful because it allows us to consider how we can get the final ratio to be $1:3:4$, without changing the number of white balls, as per the requirements of the question. This seems to be the approach that you have took.
We need to go from
$$
\text{6 white balls, 8 red balls, and 9 black balls}
$$
to
$$
\text{6 white balls, 18 red balls, and 24 black balls}
$$
The number of red balls we need is $10$, and the number of black balls we need is $15$. Can you take it from here?