Tilt the person's head forward, so Blood doesn't pool in the back of the throat, then just apply pressure from both sides of the nostrils and hold.
Hold it for 5 minutes or so and see if the bleeding has stopped. If not repeat it for five or ten minutes more. If it hasn't stopped after that or the person is choking
on blood backing up into the throat get to the nearest ER but don't let go.