Hi Sobi,
welcome to this forum!
Have you tried doing something by your own?
You might find this interesting and useful: How to ask effective questions (you should read it)
This is not really a grasshopper problem; more like a math problem.
You should try, first, to solve this on paper and pencil + some math.