You fish for fish. You need 10 so the red ball can be happy.
The coding was mine but I did take inspiration from a YouTuber called ProjectLabs.