There are two regular polygons with number of side equal to (n-1) and (n+2). Their exterior angle differ by 6 degree. Find the number of sides of the two polygons