Changed both of them to a fraction
12(3w+8)=25
36w+96=25 ( I used the distributive property)
-96 . -96
36w=-71
w=-1.972222.... ( I divided both sides by 36)
So the ratios are 5:5 and 3:5 so the fractions are 5/10 (1/2) for 7th grade and 5/8 for 8th grade