Chickens and rabbits are in the same cage. There are 15 more rabbits than chickens. They have 180 feet in total. How many chickens and rabbits are there

Chickens and rabbits are in the same cage. There are 15 more rabbits than chickens. They have 180 feet in total. How many chickens and rabbits are there

Suppose there are x chickens, then there are x + 15 rabbits
2x+(x+15)×4=180
2x+4x+60=180
6x=180-60
x=120÷6
x=20
Rabbits: 20 + 15 = 35