T = Time now
So T+M = 12 noon.
T - 48 = 9am + 2M.
Let an hour be 60 minutes, so 12 noon = 720, and 9am = 540.
(Changing from one day to the next could be a pain, but let's ignore that... )
So you have T+M = 720
and T - 48 = 540 + 2M.
Two simultaneous equations for you to solve...
Is that something like what you were looking for?