There are two squares with integer side lengths a and b. The perimeter of the entire figure is 86 cm, and the sum of the areas of the two squares is 386 cm^2. In centimeters, what is the value of a+b?

Answer:
24
Step-by-step explanation:
4a+2b= 86 cm
a²+b²= 386 cm²
a+b=?
----------
b²= 386- a², b= 43- 2a
solving quadratic equation we get
a=19 - integer solution
b= 43-2*19= 5
a+b=19+5=24