On a two-lane road, you may pass another vehicle on the right:

You may pass on the right when the driver ahead of you is making or signaling a left turn, provided that you stay on the berm or shoulder. You may also pass on the right when you are on a roadway with two or more marked traffic lanes in each direction.
DMV Writen Test