In this task, answer 'Yes' if the frequency of the given word in the two sentences is equal, else answer 'No'.
Sentence1: 'a man laying on a bed on top of his stomach', Sentence2: 'two people riding on top of two elephants'. Is the frequency of the word 'on' in two sentences equal?