sketchup command not working such trim and union
Your profile says you have SketchUp Free. Trim and Union and the other Solid Tools are part of the SketchUp Pro and SketchUp Go versions but not SketchUp Free.
If you actually got your profile wrong and you are using Sketchup Pro or SketchUp Go, share your SketchUp file so we can see what you’ve modeled. Then also correct your profile.