You have to re-write the paper that you have not past within a year of the first attempt, if you don’t you have to re-write both papers. If, however you got more than 75% for the paper that you have passed there is no time limit for re-writing the paper that you have failed.