Treble | Math Problem

Click here to read the complete problem statement.

but there are at least 4 cases!!! :face_with_raised_eyebrow: :neutral_face: :yawning_face: