Check the picture below.
the scale factor from A to B is the same scale factor from one side from A to a corresponding side on B, namely say

let's find "y" in the same way

since we're assuming both polygons are similar, then that means all their angles are equal, as it shows in the picture.