How to patent an idea and how much will it cost

How to patent an idea and how much will it cost