设养鸡x只,养鸭1500-x只
1/4x=(1500-x)*40%-15
0.25x=600-0.4x-15
0.65x=585
x=900
养鸭1500-900=600只
答:养鸡900只,养鸭600只