A problem of optimal harvesting policy in two-stage age-dependent populations.