Low iron ( Very Concerned)

Aisha
The doctor told me that I am anemic what's the best solution to handle this? Is it having a healthy and rich iron diet ? Or is it taking iron supplements? If so how may Mg should I consume?