Do a search on rust treatment, depending on how much you have, its a significant project.
Most avoid rusty bikes due to the work involved. Myself, at the right price, I don't mind doing it. I usually treat 4 or 5 bikes at once to save on prep time and materials.
Use google to search this forum and you will find plenty of info.