posted by rfvv .
1. He painted food for hungry people.
2. He painted food for the hungry.
(Are both the same?)
3. In China, there lived a poor boy who loved to paint(,) and whose name was Ma Liang.
(Is this sentence grammatical? Do we have to use 'comma' before 'and' or not?)
You have used the wrong verb -- "painted." Please check to see which word you really want.
3 is correct. You don't need any commas in that sentence.
With a magic paintbrush, he painted food. (folktale)
Both of those sentences are correct, then.