For real numbers $x$, let
f(x)={x+2 if x>3,2x+a if x≤3.
What must the value of $a$ be to make the piecewise function continuous (which means that its graph can be drawn without lifting your pencil from the paper)?
The value of a is -4.