To add a little to AB's answer, the moon’s apparent position relative to the sun is not fixed. The moon orbits the earth every twenty eight days and it appears to progressively fall behind the sun by about 50 minutes (24 hours divided by 28) each day. So if the sun and moon rise together on day 1, on day two the moon would rise 50 minutes after the sun, on day two one hour forty minutes later than the sun, and so on. (That’s roughly it. Some other factors cause these periods to vary very slightly but insignificantly).
This also explains why the high tides are about fifty minutes later each day.