Novo Nordisk is developing a combination of 2 medicines (NNC0194-0499 and semaglutide) for the treatment of nonalcoholic steatohepatitis (NASH). NASH is a serious disease where fat, inflammation and scar tissue builds up in the liver. NNC0194-0499 is a new medicine which works in the liver. Semaglutide is a well-known medicine, which is already used to treat type 2 diabetes and obesity. The study is being done to see how 2 medicines (NNC0194-0499 and semaglutide) are absorbed, transported, and eliminated from the body in a combination formulation. Participants will either get NNC0194-0499 and semaglutide in a combination formulation or the separate formulations. Which treatment participants get is decided by chance. The study will last for either 13 or 33 weeks. The duration is decided by chance.