Forget the gym, unless you can afford a personal trainer. If you want to get fit & look good then there are only 2 things you need to do.
No'1 Swimming. Have you ever seen an unfit swimmer? They don't do gym exercises, almost all of their training is done in the pool & have you seen Adam Peaty...