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: 'a can is sitting on top of a dog', Sentence2: 'a dog sitting on a bed in a sweater with a indifferent look'. Is the frequency of the word 'dog' in two sentences equal?

SOLUTION: Yes

PROBLEM: Sentence1: 'a group of seagulls and one long legged bird with a long thin beak standing in the sand of a shore line', Sentence2: 'a large bag filled with clothes and shoes'. Is the frequency of the word 'with' in two sentences equal?

SOLUTION: Yes

PROBLEM: Sentence1: 'a bay with some boats docked in it', Sentence2: 'a person sitting on a bench looking at a field and skyline'. Is the frequency of the word 'some' in two sentences equal?

SOLUTION:
No