(i) Find how many 24s there are in 586.
24×20=480,586−480=106
24×4=96,106−96=10
10 is less than 24, so we stop. The quotient is 20+4=24 and the remainder is 10.
So 24 shelves are full and 10 books are left over. The 10 books go on the next shelf, which is not full.
Check: Dividend = Divisor × Quotient + Remainder
24×24+10=576+10=586
(ii) One shelf holds 24 books and 10 are already on the last shelf.
24−10=14
14 more books would fill one more shelf.