Alan: "If you take the two digits of my age and subtract 62, the result is 9 less than Ben's age."

Ben: "If you reverse the two digits of my age and subtract 12, the result is Cal's age with the digits reversed."

Cal: "If you reverse the two digits of my age and add 47, the result is Alan's age with the digits reversed."

Don was unable to determine their ages, and requested for additional clarification, when Alan replied, "If I tell you whether my age is prime or composite, you will be able to determine our ages."

Thereupon, Don accurately deduced their ages.

Determine the age of each of the three friends in conformity with the abovementioned statements.

__Note__: Don is a logician and math wizard.