When given the opportunity to save Mia or Zoe, simply choose Zoe by pushing (X) facing her and it will change the ending for you.
*** Spoiler - click to reveal ***You make this decision shortly after dealing with Lucas' traps and fighting Jack for the last time. This ending is quite depressing because Zoe dies regardless and you must kill Mia with a crow bar. Pretty messed up, Capcom!