Auto reset circuit breaker. A common problem. When they go bad they overheat, opens up the electrical contact, pump stops, breaker cools, contact closes, and power is restored. Until it heats up again. Gradually gets worse and worse. Living room slides are typically larger and heavier than the bedroom slide.
Cheap and easy to replace. Look near your pump for something like the link above. Probably 50 amp, but could be less. Available at RV dealers parts departments, Camping World, many auto parts stores, or many places online.