Tim put red, white and blue marbles in a bag. One-third are red, one-fourth are are white and ten are blue. how many of each are in the bag and what color are they?

let number of marbles in the bag be x

x/3 + x/4 + 10 = x
times 12
4x + 3x = 120 + 12x
120 = 5x
x = 24