Dear student,
The ovules are found inside the ovary in multiple lobes. A cell in the ovule differentiates into a megaspore mother cell.
The megaspore mother cell is diploid. This megaspore mother cell undergoes meiosis to form 4 haploid megaspores.
3 of the 4 megaspores degenerate and only one megaspore is left in each ovule.
4 haploid megaspores mother cell differentiated in an ovule.
Regards,