Let number of notes of each denomination be x.
Then x + 5x + 10x = 480
16x = 480
x = 30.
Hence, total number of notes = 3x = 90.
Formula: (Divisor*Quotient) + Remainder = Dividend.
Soln:
(56*Q)+29 = D -------(1)
D%8 = R -------------(2)
From equation(2),
((56*Q)+29)%8 = R.
=> Assume Q = 1.
=> (56+29)%8 = R.
=> 85%8 = R
=> 5 = R.