The first thing you need to find is the time it took to fall. This time is independent of the mug's horizontal velocity. remember that the mug has 0 initial velocity in the y direction so the time is found fromD=1/2∗g∗t square =1.18The initial velocity will be 1.2/t
When the mug hits the floor it will have the same x velocity as when it left the table. The y velocity will be v=g*t.
You can find the direction of the velocity vector from trigonometryθ=tan elevated to −1(vy/vx)
I think this can help you a lot