The longest diagonal of a rectangular octagon varies directly as the length of a side. if a regular octagon with sides 6mm has a diagonal of lenth 23mm, how long is the diagonal of an octagon with side of 15cm?

Is there a formula for this? I dont know where to start. thanks!