Find the set of all with
Write the first condition as a union of intervals.
The word "or" is a union; "and" will be an intersection. Mixing them up is the main trap in this kind of question.
Write the second condition.
Intersect branch by branch. Intersection distributes over union:
First branch: , because every number below is also below . Second branch: , since makes the constraint redundant there.
Combine the branches.
Test three sample values. : satisfies and — in the set. : satisfies but fails — out. : satisfies but neither branch of the first condition — out. The answer matches all three.
Need to solve a different problem like this? Open the solver →