Yes first formation is definately illegal as only two at the back so I wouldn't worry too much if he plays it, should be an easy win with pretty much any standard legal formation. If he changes to the second, fairly common formation then the table of counter formations states 3N-2DML/DMR-3N-2 is countered by 4-4-2 Classic, link below.
http://forum.topeleven.com/tutorials...-what-use.html
Given the first, illegal formation is very little different to the second I'd say 4-4-2 would be fine there also if you're really looking for an answer to it, but like I said if he plays it you should win comfortably.