For some commensurate ratios of the two lengths L x and L y , certain pairs of states are degenerate. If L x / L y = p / q , where p and q are integers, the states ( n x , n y ) and ( p n y / q , q n x / p ) have the same energy and so are degenerate to each other.