First, try leaving the tablet plugged into the charger for an hour or more, even if you don't see any signs of life. Sometimes they discharge completely and take a while to respond, so it's worth waiting before doing anything else.
If that doesn't work, you have two paths, but they're not mutually exclusive. On one hand, Amazon is responsible for what it sells during the first thirty days, but after two months you're already outside that window. On the other hand, the manufacturer is responsible for manufacturing defects throughout the entire warranty period (normally one or two years). What you should do is contact the manufacturer directly with your tablet's serial number - you'll find it on the box, in the device settings, or engraved on the back. They'll tell you if it's covered under warranty and how to process the repair or replacement.
A practical tip: before you email the manufacturer, take a clear photo of the serial number and save it, then try to find their customer service number on their official website, not random numbers from Google. Some manufacturers have social media channels or chat that respond faster than email. In your first contact, mention that the charger failed and the tablet shut down after two months of normal use - make it sound like a defect, not something you did wrong. Have your Amazon receipt or confirmation email handy to prove the purchase date.