The four sides of an octagon that are vertical or horizontal are all one length, while the four slanted sides are 4 inches less. If the perimeter is 124 inches, how long are the shorter sides?