Resource Allocation Theory Applied to Farm Animal