In a certain code language, 'x' represents '+', '÷' represents 'x', '-' represents '÷' and '+' represents '-'. Find out the answer to the following question.
Two regular polygons are such that the ratio between their number of sides is 1:2 and the ratio of measures of their interior angles is 3:4. Then the number of sides of each polygon are