1.

h+n=31, h=n+30
n+n+30=31 => n=(31-30)/2=0.5 => h=31-0.5=30.5

3.

l=30+l/2
l-l/2=30
l/2=30
l=60