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 purposeand serve someone's purpose
to 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.