Let E be the age of Eric and S be the age of his sister
E + 5 = S
S = E + 5 -----------------------(1)
6(E - 5) = S - 5
6E - 30 = S - 5
6E - S = 25----------------------(2)
sub (1) into (2),we have
6E - (E + 5) = 25
5E - 5 = 25
5E = 30
E = 6
∴Eric is 6 years old.