These used to always confuse me. Remember that d = rt. Between them, the entire 248 miles is being covered, though Emma will cover more since she's going faster.
Let t = the time in hours.
Emma's distance is 19t and Maggie's is 12t. Together, they total the entire distance.
19t + 12t = 248
I bet you can get it from here!