marry up

중상급 (B2) informal

Marry someone richer or more important than you, OR fit two things together perfectly.

"Her grandmother always told her to marry up if she wanted a comfortable life."