To make a roller coaster go both forward and backward along the same track–

a. permanent magnets are mounted on both the car and the track.
b. the polarity of an electromagnet is reversed.
c. the car has fins on both sides.
d. the track is heated.

b. the polarity of an electromagnet is reversed.