# My Friend's Salary [closed]

My salary is $2,000, I am of Armenian descent and am 31 years old. However my friend, is of German descent and is 26 but he earns$8,000.

I think this is blatant discrimination but can you guys find me a logical way that such could occur?

Bonus questions, these contain spoilers for the main problem, and therefore should not be solved before it.

Find the ideal person (who is still over 18) that could minimize and maximize the salary.

Edit: Since this question is now moot I will just provide the answer but keep it in a spoiler.

It is based on the country's age and the employee's age. So Armenia became independent in 1991, which is 33 years to this day, and I am 31, which gives 2, so 2,000 bucks. West and East Germany unified to form Germany on 1990, gives the age of 34 and my friend is 26, which leaves 8 years, to 8,000 bucks.

Perhaps each person's salary is \$1000 times the position in the alphabet of the start of their country's name, plus one. So Armenia -> A -> 1 -> 2 -> \$2000; Germany -> G -> 7 -> 8 -> \$8000. Or Perhaps each person's salary is \$2000, doubled once for each zero in the binary representation of their age in years. You are 31 = 11111; no zeros, no doublings. Your friend is 26 = 11010; two zeros, two doublings, so \$8000. Or Perhaps each person's salary in kilobucks is obtained by taking the sum of the base-10 digits in their age (4 for you, 8 for your friend) and dividing by the number of times the first letter in their country-name occurs. "Armenia" has two "A"s, so you get not \$4000 but half that. "Germany" has just the one "G", so your friend gets the full \\$8000.