If n boys and n girls sit along a line alternately in x ways and along a circle alternately in y ways such that x=12y then n is equal to