.
From the condition, in 5 years Erica will be twice as old as Allen and 7 years older than Allen.
It means that in 5 years Erica will be 14 years old, while Eric will be 7 years old.
Hence, today Erica is 14-5 = 9 years old, while Eric is 7-5 = 2 years old.
Solved.