Answer:
Who functions as a subject, while whom functions as an object. Use who when the word is performing the action. Use whom when it is receiving the action. Rafael, who likes to paint. George loved painting dogs on the couch, because his friend Jorge, whom he liked very much, liked dogs.