Gym weight loss workout?

I go to the gym 2/3 times a week due to schedules and would like to lose weight i would like a mix of cardio and weights or just one, with set weights (ish or like set reps) for 40min to 60min. Thank you

Updates
1 y
Also i can use all weight machines and small weights however can’t use weight on bars thanks
Gym weight loss workout?
Post Opinion