Please check if both players used a real GK as GK. If they used a ST, MR or something else except a DC or GK, the formation can be illegal, but must not be illegal.
The first formation can also be illegal because he has a ML, but not a real MR (the MR is playing on the wrong position or is injured).
The same on the second formation, he has DL and ML, but not a real DR and MR (the DR and MR are playing on the wrong position or are injured.)
Also:
"If a formation appears to be legal, but shows a 20% possession in post-match results (one you didn't watch), first check the GK in the game - if that is his natural position, and you find no other reason for the possession penalty, test the formation yourself. If it IS illegal, make a screenshot and post here please." [Source:
http://forum.topeleven.com/formation...ion-rules.html
I can't figure out a different reason except any of these. Maybe it is a glitch or a bug.