The textbook that I'm using explicitly says to solve it without using the Chinese remainder theorem(or modular arithmetic for that case).
Any help/hint would be appreciated.
Edit: Upon reviewing the question, the book resolution does in fact use the CRT despite it imposing the restriction(The error has already been reported to the professor). Nevertheless user's u/Ilovemath answer still stands and is greatly appreciated.