I don't think it's a good idea to keep the betta with the ram. The vast majority of bettas do not appreciate tankmates.
Also, did you acclimate the betta to your tank or did you just toss him in? Why do you think the betta is dying?
75: blood parrots, featherfin cat, emperor tetras, turquoise rainbowfish, BN plecos, japanese trapdoor; 46: WCMM, gold inca snails, ghost, bamboo & amano shrimp, kuhli loaches, rummynose & ember tetras, endlers, platies, flame gourami, guppies; 16: pygmy, peppered, loxozonus corys, otos, assassins, RCS ... ~ Research PRIOR to purchase.... ~