The equation of motion for something under constant acceleration $\vec{a}$ is
$$\vec{x}(t) = \vec{x}(0) + \vec{v}(0)t + \frac12 \vec{a}t^2,$$
where $\vec{x}, \vec{v}, \vec{a}, t$ are displacement, velocity, acceleration, and time, respectively.
If you launch at an angle $\theta$ with respect to horizontal, then the $x$ and $y$ components of the initial velocity are $v_x(0) = v \cos\theta$ and
$v_y(0) = v \sin\theta,$ where $v = |\vec{v}(0)|.$
Let's take the directions to be $+x$ to the right and $+y$ up.
Let's also define $\vec{x}(0) = \vec{0}.$
If your constant acceleration is gravity, then $a_x = 0$ and $a_y = -g$.
Then, your two equations for $x$ and $y$ become
$$x(t) = v(\cos \theta)t, \\ y(t) = v(\sin \theta)t - \frac12 g t^2.$$
So, having these,
- How do you figure out what time the object hits the ground again? (It starts on the ground because of the initial condition I assumed.)
- Once you have that time, how do you figure out how far it traveled horizontally?
The second answer will depend on $g$, so this will tell you how gravity affects the range.