To be a sport pilot, you need a minimum of 20 hrs of flight schooling
https://zlato.blob.core.windows.net/aviation/sport-pilot/sport-pilot-vs-private-pilot-how-long-does-it-take-to-get.html
To be a Activity pilot, you will need no less than twenty hours of flight coaching, Whilst personal pilots need at least forty hours of flight instruction