If you are trying to gain weight then fuck cardio.
Try doing lifting splits like:
Day 1: Arms
Day 2: Chest
Day 3: Back
Day 4: Shoulders
Day 5: Legs
Day 6: Arms or Chest
Day 7: Off day.
And randomize those, I normally take 1.5-2 hours each day with my lifting partner and I have gained over 25 pounds in 6 months of doing this.
You have to be prepared to work hard though and not give up after any injuries. Some youtubers to watch are CT Fletcher, Rich Piana, Elliot Hulse, Bradley Martin , and many more. I like doing a lot of research which I would recommend for you to do as well. Logging your nutritional intake is also pretty important for weight gain.
Finally, would you mind telling us your height?