Quote:
Tried way too many methods but none of it make sense
The whole thing make no sense!
First of all this is out of topic: this thing is about mathematics, but this site is about programming.
If this is your assignment, you should have a talk with your teacher, because it make no sense.
Quote:
Tried way too many methods
This is not informative either.
We just can't help you on this.