Uncle Wang raised 45 chickens and ducks, of which the chicken is 4 / 5 of the duck. How many ducks do you raise!

Uncle Wang raised 45 chickens and ducks, of which the chicken is 4 / 5 of the duck. How many ducks do you raise!

If there are x ducks, there are:
x+4x/5=45;
9x/5=45;
x=5*45/9=5*5=25;
So 25 ducks