1. He asked a favor of Tom.

2. He demanded a present of Mary.
3. He begged a piece of bread of the woman.

(Are they all grammatical?)

All are grammatically correct, but I have to tell you -- if anyone "demanded" a present of me, I'd tell them to develop some manners! (Presents or gifts are supposed to be given out of the goodness of one's heart!)

Thank you for your help.

1. He asked Tom a favor.
2. He demanded Mary a present.
3. He begged the woman a piece of bread.
(Are they all grammatical as well?)

No. None of your last three answers are grammatical.

Yes, all three sentences are grammatically correct. They follow the structure of a verb followed by a direct object and a prepositional phrase indicating who the favor, present, or piece of bread is being asked, demanded, or begged from.

To determine if a sentence is grammatically correct, it is important to look at the subject-verb-object structure and ensure that the words are in the correct order and agree in number and tense. Additionally, it is important to follow the rules of grammar, such as using appropriate prepositions and understanding the function of each word in a sentence.

In these sentences, the subjects are not explicitly mentioned, but they are implied by the pronouns "he" and "Tom," "he" and "Mary," and "he" and "the woman" respectively. The verbs "asked," "demanded," and "begged" are followed by the direct objects "a favor," "a present," and "a piece of bread" respectively. Finally, the prepositional phrases "of Tom," "of Mary," and "of the woman" indicate who the favor, present, or piece of bread is being asked, demanded, or begged from.