Find a solution to the equation:
29x + 30y + 31z = 366
Rem: x,y,z must be positive
366 / 30 = 12 remainder 6
so (x, y, z) = (0,6,6) would be a solution if zeroes were allowed.
Because they are not, we need to add (1, -2, 1)
Leading to two solutions: (1,4,7) and (2,2,8)