# Advent Puzzles 2014: puzzle 21 solution

Most numbers have several solutions. One solution for each total is given below.

$1=1+14-2-12$
$2=(14-1-12)\times2$
$3=2+14-1-12$
$4=(2+14-12)\times1$
$5=1+2+14-12$
$6=(14-12)\times(1+2)$
$7=14-1-(12\div2)$
$8=((12-1)\times2)-14$
$9=(2\times12)-1-14$
$10=(2\times12)-(1\times14)$
$11=(2\times12)+1-14$
$12=((1+12)\times2)-14$
$13=(12+14)\div(1\times2)$
$14=((14-1)\times2)-12$
$15=(2\times14)-1-12$
$16=(2\times14)-(1\times12)$
$17=(2\times14)+1-12$
$18=((1+14)\times2)-12$
$19=(14\div2)+(1\times12)$
$20=(14\div2)+1+12$
$21=(12\div2)+1+14$
$22=((1+2)\times12)-14$
$23=12+14-1-2$
$24=12+14-(1\times2)$
$25=1+12+14-2$
$26=(12+14)\times(2-1)$
$27=2+12+14-1$
$28=(2+12+14)\times1$
$29=1+2+12+14$
$30=((1+2)\times14)-12$