Let’s solve the following math problem. Each rabbit has 4 feets and each duck has 2 feets. If there are in total 25 heads and 88 feets, how many rabbits and how many ducks are there?
We can use equations to solve this problem. Let the number of ducks be X and the number of rabbits be Y. We have 
X+Y = 25 (1) 
2X + 4Y = 88 (2). 
From the first equation, we know that X = 25-Y and we can substitute this into the second equation (2), and we get
2(25-Y) + 4Y = 88
Which can be simplified to 50 + 2Y = 88 and we have Y = 19.
We substitute the value into (1), we will then get X = 6. 
There are 6 ducks and 19 rabbits!
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
Let’s solve the following math problem. Each rabbit has 4 feets and each duck has 2 feets. If there are in total 25 heads and 88 feets, how many rabbits and how many ducks are there?

user
We can use equations to solve this problem. Let the number of ducks be X and the number of rabbits be Y. We have 
X+Y = 25 (1) 
2X + 4Y = 88 (2). 
From the first equation, we know that X = 25-Y and we can substitute this into the second equation (2), and we get
2(25-Y) + 4Y = 88
Which can be simplified to 50 + 2Y = 88 and we have Y = 19.
We substitute the value into (1), we will then get X = 6. 
There are 6 ducks and 19 rabbits!
assistant