31-8(y+5)=7
31-8(y+5)=7,
31-(8y+40)=7=(8y+40)=7-31
Or, 8y + 40=24
8y=24-40=-16
8y=-16, divide both sides by 8 and you get,
y=-16/8=-2
y=-2