Maybe. It depends on the identities of A and B.
If A and B are both reasonably standard things (like, say, JSON and YAML), and the request doesn't seem too specific to one particular set of requirements, go ahead and answer it. There may not be much to elaborate on. If the problem really is trivial (as is the case for JSON and YAML), the OP "showing effort" is just going to change the subject of a question into "How does [language feature X that I'm misusing] work?" which is a substantially less useful question for future Google traffic (Because in most cases, it's a dupe of an existing question, but with a title about JSON and YAML! Yes, you can edit the title, but at that point, why bother having a dupe in the first place?).
If A and B are both highly problem-specific formats, or the problem is clearly very involved, downvote and/or close-vote, and write comments encouraging the OP to show the code they have so far and explain the specific issue they are stuck on.
Finally, a reminder: The questioner often does not care about rep. They care about answers. When you answer somebody's question, you are encouraging the questioner, and others like the questioner, to ask questions similar to the one you just answered. This is like upvoting, but with a much larger weight. Answer judiciously.
javascript
tag, are duplicates. We have so many questions injavascript
that are immediately answered (by some high-rep people too) which have been asked and answered many, many times. Recent example.