when u dont know what to play my advice is always 4-5-1V ,or 4-4-2.

3-1-4-2 was effective for me against the second formation u asked..

hope i helped u