To answer this question, you would say:
* "Tengo [your age] años."
For example:
* "Tengo 25 años." (I am 25 years old.)
* "Tengo 18 años." (I am 18 years old.)
* "Tengo 40 años." (I am 40 years old.)
It's also common to add "y tú?" (and you?) at the end of your answer to ask the other person their age.