Pick one exercise for each main movement pattern and do two or three sets of 8 to 12 reps with a weight you can control. A complete session might be a goblet squat, a Romanian deadlift, a press, a row, and a loaded carry. That is enough to train everything that matters without spending an hour deciding what to do next.
Rest around 90 seconds between sets of the bigger lifts and about a minute for the smaller ones. The whole thing should take 40 to 50 minutes including a warm-up.
Both work. Machines fix the movement path, which lowers the skill requirement and makes it easy to train close to failure safely. Free weights demand more coordination and carry over better to sport and daily life. A sensible beginner setup uses free weights for the main patterns and machines to add volume without much technical cost.
The last two reps should feel genuinely hard while your technique stays the same as the first rep. If you finish a set and could clearly have done five more, go heavier next time. If your back rounds or your knees collapse inward to complete a rep, go lighter.
Write down the exercise, the weight, and the reps. Without a record you cannot apply progressive overload, and progressive overload is the mechanism behind almost all long-term gains. A phone note is enough.
Browse the full exercise library if you want alternatives for any of the patterns above, including versions that suit your available equipment.