There are two planets A and B revolving around a star in the two concentric orbits at the same plane. Planet A takes 366 days and B takes 30 days to complete a revolution around that star.But, where they pass each other the people living on the planet A observe the eclipse. Consider that a year has 366 days.
i) Find the number of times when planet A experiences the eclipse in a year, provided both the planets move in the same direction.
ii) Find the number of times when planet A experiences the eclipse in a year, provided the two planets move in the opposite directions.