Dimtry bought a pair of pants at the discounted price of $30. The original price of the pants was $40. What was the percent of the discount?

PLEASE EXPLAIN TO ME HOW YOU GOT YOUR ANSWER