Ty has a set of blue, green, and purple marbles

The blue marbles make up half of the set
The set has 12 purple marbles
The number of green marbles is half the number of purple marbles

How many marbles are in Ty's set?

Just write the facts as equations:

b = g+p
p = 12
g = p/2

Now find b+g+p