Answer :
x represents the number of sodas
y represents the number of hot dogs
142 = x + y
x = 38 + y
Substitute x in the first equation
142 = 38 + y +y
142 - 38 = 2y
104/2 = 2y/2
y =52
x = 38 + 52
x = 90
y represents the number of hot dogs
142 = x + y
x = 38 + y
Substitute x in the first equation
142 = 38 + y +y
142 - 38 = 2y
104/2 = 2y/2
y =52
x = 38 + 52
x = 90