On the planet Maximillian live Sprogs and Graks. Initially there were 800 sprogs and 100 Graks. The population of Sprogs doubles every 6 years and that of Graks doubles every 3 years.

a) How many Graks were there after 112 years?

b) When are there as many Sprogs as Graks?