Master cylinder brake lines fitting ports

Going thru the same thing, PO had the lines switched, even though the fittings were different sized.
Need to make new brake lines to fix the issue.