A cow is 4 years 8 months older than a heifer. The product of their ages is 8 years. Determine the age of the cow and that of the heifer.