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 chocolate cake has strawberries on the top', Sentence2: 'the man is playing tennis on the court'. Is the frequency of the word 'on' in two sentences equal?

SOLUTION: Yes

PROBLEM: Sentence1: 'a road sign sitting next to a road and a building', Sentence2: 'a bunch of cell phones sit inside of a display case'. Is the frequency of the word 'and' in two sentences equal?

SOLUTION: No

PROBLEM: Sentence1: 'a player in action at bat in a baseball game', Sentence2: 'a large truck with huge tires made for going through sand dunes'. Is the frequency of the word 'dunes' in two sentences equal?

SOLUTION:
No