TASK DEFINITION: In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.
PROBLEM: Sentence1: 'the two motorcycle officers have flags on their back', Sentence2: 'the two dogs are playing outside with a frisbee'. Is the frequency of the word 'the' in two sentences equal?

SOLUTION: Yes

PROBLEM: Sentence1: 'a flock of birds some on the ground others are perched on a park bench', Sentence2: 'people placed in a picture with bears having a picnic'. Is the frequency of the word 'perched' in two sentences equal?

SOLUTION: No

PROBLEM: Sentence1: 'a room that has a table with chairs around it', Sentence2: 'two rooms of a house are left in disarray on moving day'. Is the frequency of the word 'on' in two sentences equal?

SOLUTION:
No