I have a homework wherein a problem is eerily similar to a theorem we have proven and discussed before in class. Since we have a policy that the only concepts and theorems that we can apply to our homeworks and quizzes are those discussed in class, I figured that if I slightly modify a set defined in the proof of a previously discussed theorem, I would be able to prove my homework (I managed to prove it following the proof of the previous theorem).
Can I do this? Is this considered plagiarism?