A square has a side length of 7 cm. A rectangle has a length of y/8-3cm and a width of 4 cm. The square has the same perimeter as the rectangle. Work out the value of y.