Given: All the yellow, red, and blue equals 152.
So, Y + R + B = 152
These are three variables and you need to have just one variable.
You can get rid of the R by taking the given that R = Y (the number of yellows) + 7.
You can get rid of the B by taking the given that there are three times as many blue as yellow, which is the same as saying yellow times 3.
So, Y + Y + 7 + 3Y = 152
Combine like terms.
So, 5Y + 7 = 152
Subtract out the 7 from both sides to get
5Y = 145
Then divide both sides by 5 to get Y = 29
To check this, say 29 + 36 + 87 = 152 because the middle number must be 7 more than the first, and the last number must be three times the first. Does that all make sense?