Final answer:
Pull over for flashing red and blue lights used by emergency vehicles and stop at flashing red lights that act as a stop sign. Do not pull over for flashing green lights unless accompanied by other signals indicating to yield.
Step-by-step explanation:
When encountering flashing lights while driving, it is important to understand what each color signifies to take the appropriate action. For flashing red and blue lights, you generally should pull over, as these are typically used by emergency vehicles, such as police, fire, and ambulances, indicating that you should yield the right-of-way. A flashing red light acts as a stop sign, and you are required to come to a complete stop, look for other traffic, and proceed when it's safe. A flashing green light, although less common, may indicate permission for a tram or bus to go or an instruction for pedestrian crossings but is not generally a signal for typical car drivers to pull over unless it is used in conjunction with other signals that instruct a driver to yield or give priority to other vehicles. Therefore, with regard to the question posed, you should pull over or stop for flashing red and blue and flashing red lights specifically.