Let x be the total number of hearts in the bag

Then according to question

Number white hearts =( 3/4)x=3x/4

Remaining (pink+green) hearts in bag

x-(3x/4)= x/4

Number of pink heart = (x/4)×(4/7)= x/7

Number of green hearts 💚= (x/4)-(x/7)=9

⇒ (7x-4x)/28= 9

⇒3x=9×28

⇒ x=(9×28)/3 =3×28=84 hearts Ans.