Step : Finding the other number
Let, the required number be x.
According to question, x should be subtracted from
−512 to get 524.
−512−x=524
⇒−512−524=x
⇒x=−5×212×2−524 [∵LCM of 12 and 24 is 24]
=−1024−524=−10−524=−1524=−58
Hence, −58 should be subtracted from −512 to get 524.