The seven healthy cows represent seven years. The seven good heads of grain also represent seven years. The two dreams both have the same meaning.