GeraltOfRivia_PL: I have got out of Irenicus' dunfeon and he's kidnapped Imoen. Do i need to hurry or am i free to do sidequests?
Btw when you do the tent sidequest a gene tells you a riddle. Am i dumb for not being able to solve it on first try? Did yiu manage to?
You can't solve the riddle, since it has infinite solutions. You just have to check the initial conditions of each answer and select the one that satisfies the given problem. The wording is a little weird as well, which doesn't help at all :)
"A princess is as old as the prince will be when the princess is twice as old as the prince was when the princess' age was half the sum of their present age." Let's be sexist and call the princess's current age x, the prince's current age y, the time to the future f, and the time to the past p.
"princess' age was half the sum of their present age." is the past. So
(Equation I) x-p = (x+y)/2 --> p years ago princess was "x-p" year's old.
"will be when the princess is twice as old as the prince was" is comparing the princess's future to the prince's past.
(Equation II) x + f = 2(y-p) --> f years later the princess will be x+f years old and p years ago the prince was (y-p) years old. It says twice so we multiplied by 2.
Finally
"A princess is as old as the prince will be " comparing the princess's current age to the prince's future age.
(Equation III) x = y + f. Today the princess is x years old and the prince will be y+f years old in the future.
Now, we have 3 equations with 4 unknowns (variables). This automatically suggests infinite or no results. However, let's move on. We want to get rid of the time's so we can only see relation of ages
(Equation I) x-p = (x+y)/2 can be written as p = (x-y)/2 or 2p = x-y
(Equation III) x = y + f. can be written as f = x-y
now if we put this into the 2nd equation... x + f = 2(y-p)
x + x - y = 2 (y - p) --> remember 2p = x-y
2x - y = 2y - (x - y )
2x - y = 3y - x
3x = 4y which means 3 times Princess's current age = 4 times the princess's current age. If the Princess is 40, the prince will be 30. If the Princess is 20, the prince would be 15, and so on.
I tried to make it as simple as possible. I hope I was able to achieve that to some extend :)
Edit: Fixed a small mistake.