While you may argue that one twin is always born first, this is an idealized mathematical problem, so it can't depend on particular details of physical reality in that way. There is nothing logically preventing them from being the same age, so it can't be pivotal to solving the problem.
And in fact, I experimentally got the right result without any reference to ages.