This article explains it pretty well: https://www.medicinenet.com/hdl_vs_ldl_cholesterol_differences/article.htm#what_do_the_hdl_and_ldl_numbers_mean
Eating a healthy diet is key to boosting HDL (good cholesterol) and lowering LDL (bad cholesterol). The article has some good suggestions for foods to eat to help keep the balance right.
One of the best ways to raise HDL is through exercise. Brisk walking for 30 minutes most days of the week will have a great impact on HDL and raising your HDL will balance out your total cholesterol number as Total Cholesterol is a ratio between HDL and LDL. LDL can be lowered for many through diet. Exercise is a key component for HDL so make sure to get that regularly. good luck