3 DC motors

Hi
I have 3 DC motor A,B,and C
At the first time i want the motors B forward and C reverse work only by angles 22 then
B reverse and C forward by angle 17

At the seconed time Motor A reverse and B and C work together forward by angle 30
Then A forward and B and C togather reverse by angle 45 using arduino mega with computer
Can you help me please

What measure the angle?

In order to move DC motors by an exact number degrees you need some form of feedback mechanism, such as a rotary encoder, so that you know how far they have moved. If your motors do not have such a mechanism then you should give up now. Doing what you want with servos would be easy but not with ordinary DC motors.

Or steppers.