Nina made 2 cake layers which were equal to 2 x 12 = <<2*12=24>>24 cupcakes.
She made the equivalent of 24 + 12 = <<24+12=36>>36 cupcakes in all.
Thus, there are 720 / 36 = <<720/36=20>>20 grams of sugar in a cupcake.
#### 20