Help me please it hardddd

There are a total 40 cars
and there is x yellow cars
and there are nine times as much white cars (9x white cars) lol
so x+9x=40
simplify 10x=40
divide both sides by ten 10x/10=40/10
x=4
we are looking for the number of WHITE cars sooo we multiply by 9-
9x=36
how is this "hardddd" no offence*
sorry im a mean person