Exercise tips please!

I don't have money to buy a gym set and the nearest gym to me is sooo far away which means I need a lot of gas and don't have the money. So how can I work out, to loose weight and gain muscle?