So if I want to weigh 180 pounds I need to take in 180 g of protein and 2700 cals?
That's where I'd start and adjust from there.
I'm not gonna say "hardgainer" is a myth, but a lot of guys ascribe it to themselves when they're not. Gaining muscle isn't a fast & easy process unless you're new or genetically gifted.
Cals & all that will also depend on what kinda shapre you're in, metabolism, etc.
All other things being equal, 15 calories per pound of body weight is typically a good prescription to maintain current body weight at current body composition (i.e. - bodyfat percentage).
So if you're under that body weight, but eat at that body weight's maintenance calories with (more than) adequate protein, sufficient activity, workouts, etc, you could (should) start to bump up.
If you want a baseline before you start, track every single thing you eat for a solid week before you get started - but you have to be meticulous AF. (<==saying because most people are haphazard AF & their food logs are nowhere near accurate)
Doing this then gives you an idea of what you're currently eating and what your baseline numbers are.
Perhaps you're already eating way more calories than that on average, so you'd need to have calories than you'd think. Or perhaps you're not eating nearly enough. Or perhaps your protein sucks. etc
You get the base idea.
Hope that helps.