You tested positive for latent TB, which is very, very common. If you had any abnormalities on your x-ray they would have asked you to provide sputum samples for TB culture. If any of those samples were positive for TB it would have meant a diagnosis of active TB. That is when you would have had a problem and needed to be successfully treated before being allowed to immigrate to the US. Hep B is also very common, and in some people the infection is chronic, meaning they need to take medication to suppress the infection, potentially for the rest of their lives. But especially if they are on medication and their Hep B viral load is undetectable, they are not at high risk of transmitting the virus to others, and are not considered a public health threat. Remember, the primary goal of the medical evaluation prior to immigration is to make sure that the immigrant does not pose a threat to the public health, which usually means not being a carrier of a highly transmissible infectious disease, like active TB (or COVID-19). Once that threat has been addressed, meaning the infection is controlled and the person is not contagious, they are typically cleared for entry.