Both of these pills are really dangerous for dogs.
Ibuprofen damages the kidneys -- and that damage is often permanent. The little filtering devices inside the kidneys don't grow back once they're destroyed. A dog who survives the poisoning can end up with lifelong kidney disease, which means special diets, more frequent vet visits, and a shorter life than she should have had.
(I watched this happen to my own dog after a house sitter stepped on her paw and gave her ibuprofen to "help." My dog lived, but she needed a special diet for the rest of her life.)
Acetaminophen wrecks the liver, and it also can damage red blood cells so they can't carry oxygen properly. A poisoned dog may get lethargic, vomit, start to breathe heavily... This is especially dangerous for older dogs, or any dog whose red blood cells are already compromised, by conditions like IMHA.