I need to know how to solve the equation for the variable

Answer:
Step-by-step explanation:
1.
23 + 7 = y +12
y +12 = 30
y = 30 -12
y = 18
2.
a + 3 + 15 = 8 + 8 + 8
a +18 = 24
a = 6