Gradle - adding sequence number

can someone help me on this task,

create a custom class mathtask that takes the first 10 numbers appearing in the fibonacci sequence as well as the lucas sequence and prints the sum of numbers appearing in the respective positions(i.e takes the first number from both the series and calculate the sum and prints it, then takes the second and do the same until tenth numbers)

You are posting in the Gradle forums. Gradle is a build automation tool. The task you’re seeking help with doesn’t appear to involve Gradle at all, and looks like a programming homework problem. If you end up using and have a specific issue with Gradle, feel free to ask here, but otherwise, this is very off-topic for this forum.

I want to complete one challenge using gradle, the program is lucas sequence and am not having any knowledge on gradle,

If anyone can help,it really helps a lot