The laws on aiding and abetting someone in commission of a crime can vary from state to state.
But most places aiding and abetting someone who committed a crime can get you 1 year in county jail and/or 3 to 10 years in prison.
The sentence for aiding and abetting someone also depends on the crime that was committed.
If you aided and abetted someone in a bank or other robbery then you'll likely get the same amount of time in prison as the person who committed the crime even though you didn't do the robbery.
That is if they can prove you knew about what was going on.
I saw on a prison documentary about a 25 year old male doing life in prison for a murder that a friend committed but he got charged with murder too because he was in the get away vehicle with him and had aided and abetted him when he murdered the person.
One thing to do on a serious matter is to never speak directly to the police about the crime if they suspect you of something such as aiding and abetting.
You do have the right to remain silent and you should remain silent until speaking with an attorney about the crime and charge.