answer (one's) purpose
To be useful for a particular task. If that's the only paintbrush we have, I think it will answer my purpose.
answer someone's purpose
and serve someone's purposeto fit or suit someone's aim or goal. This piece of wood will answer my purpose quite nicely. The new car serves our purpose perfectly.