User:Nom/sandbox/templates/Template:A2

Usage
Return a*3 + b