Beggar method or something else

Discrete Mathematics Level 3

Find the number of triplets of non-negative integer solutions to the inequality $$X+Y+Z<24$$.

×