Both. Blue became overlapped after Red had completed her tack and sailed close hauled. In this case rule 17 requires Blue not to sail above her proper course. Blue did sail above her proper course and will therefore be penalized. Also rule 11 applies and requires Red to keep clear. Red did not keep clear and therefore Red will be penalized for infringing rule 11.