If the both lights are on, you have experienced serious brakes system malfunction.
It is NOT safe to drive. Stop driving, pull over to the side, check brake fluid level and seek assistance.
Usual problems: brake fluid leaking, brake master cylinder malfunction, electrical problem
Brake performance is the most important safety element of your car. If the brake fluid is low and brake pedal travel is noticeably longer than usual, it means that hydraulic pressure has been lost in one of the hydraulic systems. Don’t continue driving your vehicle!