4. The lion is older than the porcupine

By two and a half times.

According to the hoopoe's information

Three years ago

The lion was seven times older,

Than the porcupine.

Take all into account and weigh:

How old are they together? -

Allow me to ask you.
4. Let the hedgehog be $x$ years old, then the lion is $2.5 x$. Three years ago, the hedgehog was $x-3$, and the lion was $2.5 x-3$. According to the problem,

$7(x-3)=2.5 x-3$

from which $x=4$. Therefore, the hedgehog and the lion together are 14 years old.