The product of the ages of a father and his son is 576. If the father is 18 years younger than 5 times his son, how old is each?