Question 1018079
.
ABCDEFGH is a regular octagon and AB=p and BC=q. Express AH in terms of p and q and show that AE+BH+CG+DF=2(2+√2)(q-V2  times p).
-------------------------------------------------------------


Your condition looks strange.


If ABCDEFGH is a regular octagon, then AB = p = BC = q = AH, as AB, BC and AH are the sides of the regular octagon.


Your comments?