There is no rule or law that says you cannot get help from someone else for solving your math problems. So, it is fine to do this.