Take the number of pieces of silver for which Joseph's brothers sold him. (Genesis 37:28)

Multiply by the number of cows in each of Pharoah's dreams.

Divide by the length in years of the famine.

Multiply by the number of Joseph's brothers.

Add Joseph's age when he stood before Pharoah. (Genesis 41:46)

Divide by the number of Joseph's sons.

Subtract the number of beasts laden with gifts which Joseph sent to his father. (Genesis 45:23)

Add the number of changes of raiment he gave to Benjamin. (Genesis 45:22)

The result will be Joseph's age when he died. (Genesis 50:26)