what is the measure of the complement of an angle it its supplement is 145 degrees?

Attempt: let 90 - x be complement ; 180 - x be supplement

180 - (90 - x) = 145

x = 55

please correct me if im wrong cause im not so sure with my answer

or is it 90 - x is the complement and x + 145 = 180 from supplementary angles definition, then x = 35, then complementary angle = 90 - (35) = 55