X + Y = 50
Y + Y + Y = 120
X + Z = 35
Z = ?

Z = 25.

Y + Y + Y = 120 => 3Y = 120 => Y = 40
X + 40 = 50 => X = 10
10 + Z = 35 => Z = 35 - 10 = 25


Viral riddles