Malcolm has bought 12 * 3 = <<12*3=36>>36 blue lights.
This means he has bought a total of 12 + 36 + 6 = <<12+36+6=54>>54 colored lights.
If he still needs to buy more lights, then he must have initially had 54 + 5 = <<54+5=59>>59 white lights.
#### 59