You can rearrange this to say 77 plus 40 minus your age, and 77 plus 40 is 117. The year 2017 is also 117 years past the year 1900. Thus the sum in question would give you the last two digits of the year you were born. If you were born after 2000, you would have to subtract 100 from this total.