I think this is a tricky one, with the Arabic form having the middle names written out in full but the English version different. Even with those instructions I'm not sure how a consular officer would view initials rather than middle names where those names actually exist. Also ...Remember what is in your DV becomes your official US name in the event you get selected. Surely you don't want your official middle name to be A M ....
so.... My inclination would be to write the full two names out in the entry even in English, because in Arabic they are in full. Perhaps this case is worth contacting the embassy in your country to ask them how to proceed. The two different versions can certainly be reconciled in the DS if selected, but it's important to make sure the entry is correct to avoid disqualification.