Get 2 shaft encoders to work together for turning with degrees

I want to put an encoder on each side of my robot. I would then use the encoders to turn for degrees. However, I have no idea how to do this. Could someone give suggestions? I am using vex c++.

Do you mean measuring wheel rotations in degrees or the amount of degrees the robot rotates?

Amount of degrees the robot rotates

What I would do is figure out how many units (from the encoder) it would take to turn the robot a number of times (10 would be good). Once I have found a good/precise amount of wheel turning by trial and error, I would take the amount the encoder span and divide it by 10 for my rotation count and divide by 360 to convert into degrees. This result number is what you can use. You take your degrees you want to rotate your robot and times it by this number, and what you get is a target value the encoders should turn to rotate your robot that amount.

There are plenty of other ways to do this too