Equation 1:
b+h=34
Equation 2:
h-b=8
OR
b-h=8
* since we did not know whether b>h or h>b
Let's assume h>b, so we use h-b=8
(b+h)-(h-b)=34-8
b+h-h+b=26
2b=26
b=13
Then, substitute b=13 into the equation
h-b=8
h-13=8
h=21
If we use b-h=8, we will get b=21, h=13
Answer:
b=13,h=21 OR
b=21,h=13