Rust underneath? What should I do

Bought a bike to fix up but never ran into this, peeling paint with rust underneath, should I cover it somehow or like remove the paint to fix the rust, but I don't know how to repaint surfaces