implementation

awk 23byte

$0=2*($1*($2+$3)+$2*$3)