Niners SB Winners $35 to win $490
Rams ML -180 = $63 to win $35
If Rams win, you break even.
If Niners win, then it's $35 to win $427 (490-63)
Then you wait and see who Niners face. Niners will probably be favored with Bengals which means you can do a nice ML hedge. Against, Chiefs, you just have to see what the Chiefs ML will be, probably -180 to -200. Either way, you would break even or win money at the cost of paying ~$130-150 (All the ML wagers you'd lose). So your ticket effectively becomes $35 to win $340 ($490 - ML Wagers Lost).