Help with controlling 2 DC motors

Hi, I'm having a project at school where I need to control two DC motors. Each at 9.8 volts. I need like 10 steps where I control the voltage from let's say 3-9.8 volts. It is for a ping pong launcher where I have two wheels. The wheels need to spin both clockwise and countercw. Forward and backward spin. Can someone give me some tips? I am not really good at programming.

Why do the wheels need to reverse?
Do you intend sucking balls back in?

Not both at the same time of course. Then you will get forward and backward spin... For instance the upperwheel spins backwards and the other one spins forwards, then u get forwardspin of the ball

Do you actually need to run them in opposite directions?
Isn't it sufficient to stop one, or run it slower/faster?

Yes, maybe. I haven't really thought of that so much. I'm just wondering how I will do this. Do I need other things than an arduino and some transistors, diodes with external psu? Do I need like a moter driver (IC)?

You will certainly need a buffer between the Arduino and the motor.
A pair of R/C ESCs may be sufficient.
Or a motor shield.
If you don't need reverse, maybe even just a pair of logic-level FETs.

Ok, maybe I should just stick with the two motors rotating the same way, and having the same speed at the same time on both of them. Do you know any projects that I could follow? I'm not that good in electronics to make something myself, so I think I would just need to follow some guide. Im new to programming too..

First, I'd start by thinking about how you're going to enter your speeds, to allow you to distinguish which value applies to which motor.

Please get into the habit of using code tags when posting code.

My work is to only give those values, so the other people need to care about that. I just need to produce a code where I have list of those values and the motors go from 25,5 to 255 in maybe 1 minute (gradually) with delays in between those values.