Here is how you can download music from YouTube:
Go to YouTube and search for the songs or video playlists that you want to download offline. After that, play the video and tap the menu (three vertical dots in the upper right-hand corner of the screen) and then Download.