A regular pentagon has sides length x cm. a square with sides of length x+4cm has the same perimeter as the pentagon. find the x