Pharma typically spends a lot more on marketing than research. In fact, there is little to no correlation between research costs and the cost of a drug.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5559086/
https://www.wired.com/story/drug-research-pricing/
https://www.washingtonpost.com/news/wonk/wp/2015/02/11/big-p...
https://www.cbsnews.com/news/higher-drug-prices-support-prof...