It is not typically illegal to do homework for money, but it may violate academic integrity policies. Such ethical guidelines are often set by schools or colleges to maintain some level of responsibility. Still, there is nothing wrong with asking for assistance with your homework.